Question
Create tables using SQL according to the given schema. You must create your database using exactly the same name for tables and attributes, using the
Create tables using SQL according to the given schema. You must create your database using exactly the same name for tables and attributes, using the given type.
Schema
Customer (cid, name, address);
Orders (oid, order_date, cid) foreign key (cid) references Customer(cid);
Order_book(oid, isbn, no_of_copy) foreign key (oid) references Orders(oid), foreign key(isbn) references Book (isbn);
Publisher (pid, name, address, phone);
Book (isbn, title, btype, price, pub_date, pid)
foreign key (pid) references Publisher (pid);
Author (aid, fname, lname);
Written_by(isbn, aid)
foreign key (isbn) references Book (isbn), foreign key (aid) references Author (aid);
Editor (eid, fname, lname);
Edited_by(eid, isbn)
foreign key (isbn) references Book (isbn), foreign key (eid) references Editor (eid);
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started