Answered step by step
Verified Expert Solution
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 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
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