Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed 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 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_2

Step: 3

blur-text-image_3

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

Oracle Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions