Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Create a database/schema with the name Testing123. 2. Inside this database, create the following tables: Please code the answer to the above problem in

1. Create a database/schema with the name Testing123.

2. Inside this database, create the following tables:

image text in transcribed

Please code the answer to the above problem in SQL. Thank you.

- BOOK (isbn, title, num-pages, publisher, year, genre, price, aut-id). The first attribute is the primary key; the last one is a foreign key to AUTHOR. 1 - CUSTOMER(customer-id, name, address, city, state, zip, age). The first attribute is the primary key. - SALES (isbn, custid, num-copies, day, month, year, total). The first attribute is a foreign key to BOOK and the second a foreign key to CUSTOMER. The key of this table is the two foreign keys together. - AUTHOR (author-id, name, dob, nationality, address, city, state, zip). The first attribute is the primary key

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

Database Design And Relational Theory Normal Forms And All That Jazz

Authors: Chris Date

1st Edition

1449328016, 978-1449328016

More Books

Students also viewed these Databases questions

Question

Please describe HIPPA, PCI DSS. Please provide references.

Answered: 1 week ago