Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using SQL , create a database that tracks the inventory of books. You must have the following tables: BOOKS, AUTHORS, PUBLISHERS, GENRE, and BOOK _

Using SQL, create a database that tracks the inventory of books. You must have the following tables: BOOKS, AUTHORS, PUBLISHERS, GENRE, and BOOK_TYPE.
The BOOKS table must have the following attributes: ISBN, TITLE, AUTHOR_ID, PUBLISHER_ID, BOOK_TYPE, GENRE, and PUBLISH_DATE.
The AUTHORS table must have the following attributes: AUTHOR_ID, LAST_NAME, and FIRST_NAME.
The PUBLISHERS table must have the following attributes: PUBLISHER_ID, COMPANY_NAME, and STATE.
The GENRE table is a lookup table with one field: GENRE_TYPE.
The BOOK_TYPE table is a lookup table with one field BOOK_TYPE.
Make sure you have the appropriate Primary and Foreign Keys where needed. You must establish relationships between BOOKS and the other tables.
Populate the two lookup tables:
GENRE will have: Romance, Thriller, Western, Spy, History
BOOK_TYPE will have: Hardback, Paperback, Electronic
You can only use SQL Statements. Test your work and submit the SQL file.

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

More Books

Students also viewed these Databases questions

Question

(c) What is the complete defining relationship?

Answered: 1 week ago