Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Use standard notation for representing tables. Underline primary keys and italic

ID: 3809143 • Letter: U

Question

Use standard notation for representing tables. Underline primary keys and italicize foreign keys. For example:

STUDENT (Stud_ID, Surname, Forename, Matriculated, College, Email, Sup_ID) SUPERVISOR (Sup_ID, Surname, Forename, Add

1. Convert the ER Diagram below to a list of tables. Be sure to identify primary keys and foreign keys.

2. Convert the ER Diagram below to a list of tables. Be sure to identify primary keys and
foreign keys.

3. Convert the ER Diagram below to a list of tables. Be sure to identify primary keys and

4. Map the following super?type, sub?type relationship to tables. Be sure to identify primary
keys and foreign keys.

Tag No FName LName FARMER owns COW County State Breed DOB

Explanation / Answer

1.
FARMER (FName PRIMARY KEY, LName, Country, State)
COW(TagNo PRIMARY KEY,Breed,DOB,Owns FOREIGN KEY)

2.
AUTHOR(AuthNo PRIMARY KEY, AuthName)
BOOK(ISBN PRIMARY KEY,Title,Writes FOREIGN KEY)

3.
CUSTOMER(CustomerID PRIMARY KEY,LastName,FirstName,Address,City,State,ZIP,Phone,Email)

4.
PROPERTY(PropertyID PRIMARY KEY,PropetyType,Address,City,State,ZIP)
HOUSE(PropertyID FOREIGN KEY,NumberOfBedrooms)
APARTMENT_HOUSE(PropertyID FOREIGN KEY,NumberOfUnits,ManagerName)
COMMERCIAL(PropertyID FOREIGN KEY,NumberOfUnits,TotalFloorSpace)