Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Family Relations - I Consider the family Entity-Relationship (E-R) diagram[s] discussed in the class. A. Given the relation PERSONS that has tuples holding the attributes

image text in transcribed

Family Relations - I Consider the family Entity-Relationship (E-R) diagram[s] discussed in the class. A. Given the relation PERSONS that has tuples holding the attributes of persons (p), and the relation FAMILY that has tuples of the form (pld, fld, mid), where pld is the Id person in PERSONS, fId is the Id of the father of p, and mId is the Id of the mother of p, with f and m are also persons in PERSONS. 1. Provide the E-R diagram and corresponding relational database schema used for this assignment. Indicate for each relation: the key or keys, primary key, foreign keys, essential constraints, and any appropriate checks. 2. Provide appropriate data manipulation expressions to create the relations in a RDBS of your choice. 3. Give appropriate relational algebra trees-expressions that return: a. b. c. Children of a given couple; Grandparents of a given person; and Nephews -- sons of one's brother or sister -- of a given person. 4. Provide appropriate SQL expressions for the queries in A3. B. Implement A above using your RDBS of choice. Test your implementation of the queries using an appropriate set of data. The data utilized must be representative and sufficient to demonstrate the validity of your queries. Family Relations - I Consider the family Entity-Relationship (E-R) diagram[s] discussed in the class. A. Given the relation PERSONS that has tuples holding the attributes of persons (p), and the relation FAMILY that has tuples of the form (pld, fld, mid), where pld is the Id person in PERSONS, fId is the Id of the father of p, and mId is the Id of the mother of p, with f and m are also persons in PERSONS. 1. Provide the E-R diagram and corresponding relational database schema used for this assignment. Indicate for each relation: the key or keys, primary key, foreign keys, essential constraints, and any appropriate checks. 2. Provide appropriate data manipulation expressions to create the relations in a RDBS of your choice. 3. Give appropriate relational algebra trees-expressions that return: a. b. c. Children of a given couple; Grandparents of a given person; and Nephews -- sons of one's brother or sister -- of a given person. 4. Provide appropriate SQL expressions for the queries in A3. B. Implement A above using your RDBS of choice. Test your implementation of the queries using an appropriate set of data. The data utilized must be representative and sufficient to demonstrate the validity of your queries

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil, Elizabeth O'Neil

2nd Edition

1558605800, 978-1558605800

More Books

Students also viewed these Databases questions

Question

Explain the key areas in which service employees need training.

Answered: 1 week ago

Question

Understand the role of internal marketing and communications.

Answered: 1 week ago