Question: Write the SQL code to create the table structures for the entities shown in Figure P7.65. The structures should contain the attributes specified in the

Write the SQL code to create the table structures for the entities shown in Figure P7.65. The structures should contain the attributes specified in the ERD. Use data types that would be appropriate for the data that will need to be stored in each attribute. Enforce primary key and foreign key constraints as indicated by the ERD.

Write the SQL code to create the table structures for

DETAILRENTAL MEMBERSHIP RENTAL PK,FK1 RENT NUM PK,FK2VID NUM PK MEM NUM PK RENT NUM MEM FNAME MEM LNAME MEM STREET MEM CITY MEM STATE MEM ZIP MEM BALANCE DETAIL FEE DETAIL DUEDATE DETAIL RETURNDATE DETAIL DAILYLATEFEE RENT DATE FK1 MEM NUM MOVIE VIDEO PK MOVIE NUM PK VID NUM PRICE MOVIE TITLE MOVIE YEAR MOVIE COST VID INDATE FK1 MOVIE NUM PK PRICE CODE PRICE DESCRIPTION PRICE RENTFEE PRICE DAILYLATEFEE MOVIE GENRE FK1 PRICE CODE

Step by Step Solution

3.44 Rating (157 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Based on the referential integrity constraints students should be able to identify a correct sequenc... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

358-CS-DB (660).docx

120 KBs Word File

Students Have Also Explored These Related Databases Questions!