[ slide-15 .png ] Q1. Please write SQL codes to create below member database table based on the previous slide (slide 15) Video E-R Modeling Diagram. child table parent table RENTAL MEMBER 1. The...



[   slide-15 .png  ]



Q1. Please write SQL codes to create below member database table   based on the previous slide (slide 15) Video E-R Modeling Diagram.



          child table                                                         parent table









RENTALMEMBER


1. The rental table is a child table, and the member table is a parent table.


2. We need to create member parent table first before creating rental child table.


3. The member_ID column is the primary key column, and rest columns are NOT NULL constraints.



DESC MEMBER


















































NameNull?Type
memberNOT NULLNUMBER(4, 0)
first_nameNOT NULLVARCHAR2(25)
last_nameNOT NULLVARCHAR2(25)
streetNOT NULLVARCHAR2(25)
cityNOT NULLVARCHAR2(15)
phoneNOT NULLCHAR(11)
valid_dateNOT NULLDATE
balanceNOT NULLNUMBER


RENTAL<br>МЕMBER<br>DVD<br>Each rental must be related to one and only one member.<br>Each member may have one or many rentals.<br>Each rental must be related to one and only one dvd.<br>w<br>Each dvd may be related to one or many rentals.<br>

Extracted text: RENTAL МЕMBER DVD Each rental must be related to one and only one member. Each member may have one or many rentals. Each rental must be related to one and only one dvd. w Each dvd may be related to one or many rentals.

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here