Answered step by step
Verified Expert Solution
Question
1 Approved Answer
please answer it with clear steps with code. I will upvote you. Family Relations - I Consider the family Entity-Relationship (E-R) diagram[s] discussed in the
please answer it with clear steps with code. I will upvote you.
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 (pId, fid, mid), where pld is the Id person in PERSONS, fid is the Id of the father of p, and mld is the Id of the mother of p, with fand mare 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 queriesStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started