Question: 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 BOOKTYPE.
The BOOKS table must have the following attributes: ISBN, TITLE, AUTHORID PUBLISHERID BOOKTYPE, GENRE, and PUBLISHDATE.
The AUTHORS table must have the following attributes: AUTHORID LASTNAME, and FIRSTNAME.
The PUBLISHERS table must have the following attributes: PUBLISHERID COMPANYNAME, and STATE.
The GENRE table is a lookup table with one field: GENRETYPE.
The BOOKTYPE table is a lookup table with one field BOOKTYPE.
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
BOOKTYPE 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
