60 likes | 159 Views
ER to Relational Schemas. Lab3. Case Study: Internet Shop. Relation Schemas. Books ( isbn , title, author, qty_in_stock, price, year_published) Customers ( cid , cname, address, cardnum) Orders ( isbn, cid , qty, order_date, ship_date) isbn is a foreign key that references Books
E N D
Relation Schemas Books (isbn, title, author, qty_in_stock, price, year_published) Customers (cid, cname, address, cardnum) Orders (isbn, cid, qty, order_date, ship_date) isbn is a foreign key that references Books cid is a foreign key that references Customers
Relation Schemas (Modified) Books (isbn, title, author, qty_in_stock, price, year_published) Customers (cid, cname, address, cardnum) Orders (isbn, cid, order-date, qty, ship_date) isbn is a foreign key that references Books cid is a foreign key that references Customers
Relation Schemas (Modified2) Books (isbn, title, author, qty_in_stock, price, year_published) Customers (cid, cname, address, cardnum) Orders (ordernum, isbn, cid, qty, order_date, ship_date) isbn is a foreign key that references Books cid is a foreign key that references Customers