NAME

:

CWID:

Q1: Consider two entities, car and driver, and one-to-many relationship between them. Also assume that the delete rule between two relations is cascade, and primary key value of car appears as a foreign key value in driver. What happens if one deletes a record in car relation?

Q2: Consider two entities house and owner, and one-to-many relationship between them. Also assume that the delete rule between two relations is restrict, and primary key value of house appears as a foreign key value in one records of owner. What happens if one deletes a record in relation house?

Q3: List at least four physical design techniques that DO NOT change logical design of the databases.

Q4:

Enclosure number 347 636 912 1483 1660 341

Type Fenced Yard Fenced Yard Natural Area Fenced Yard Steel Cage Fenced Yard

Size 400 1500 2000 1650 700 250

Animal Number 13648 15273 17543 20165 23743 27579

Species Elephant Giraffe Elephant Giraffe Giraffe Panda

Animal Name Jumbo Stretch Shirley Necky High Top Fluffy

Functional Dependencies Enclosure Number  Type Enclosure Number  Size Animal Number  Species Animal Number  Animal Name Animal Number  Enclosure Number
Based on above table and functional dependencies a) Normalize the table into 2NF b) Then, analyze resulting tables from Q4.a if they are in 3NF already. If not, normalize to 3NF.

ER diagram can be found at course website. write your SQL statements for the following question. and the number of tracks on the title. SQL: .Based on Lyric Database discussed in the class. the name of the artist. Q5: List each title from the Title table along with the name and phone of the studio where it was recorded. SQL: Q6: List each title from the Title table along with the name of the studio where it was recorded.

SQL: . SQL: Q8: List each artist name and a count of the number of members assigned to that artist. SQL: Q9: List the first and last names of all salespeople and the count of the number of members they work with.Q7: List the names of responsible parties along with the artist name of the artist they are responsible for.

Sign up to vote on this title
UsefulNot useful