Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MySQL Crash Course A Hands On Introduction To Database Development

Authors: Rick Silva

1st Edition

1718503008, 978-1718503007

More Books

Students also viewed these Databases questions

Question

Define marketing concepts.

Answered: 1 week ago

Question

1 what does yellow colour on the map represent?

Answered: 1 week ago

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago