In: Computer Science
Using WORKBENCH:
1. Create the database below via an ER Diagram in Workbench (take screen shots of the diagram)
2. Go to the database table view and take a screen shot of the table(s)
3. Go to the data entry tool and enter at least three lines of data (in each table). Take screen shots.
Create a database that is in third normal form for the following:
You are a nerd and have decided to organize your comic books in a database.
You have decided to create categories for the books. The categories a a separate table because it includes the category name and a description of the category. The names might not be unique.
You also want to keep track of the size (width and length) of each book (I did say you were a nerd..LOL). Since several books are the same size, you decide to also keep this in a separate table.
You have books from several publishers, so you decide to create a publishers table. In the table you have the publisher and the address of their home office.
Finally, of course, you have the books table. The books table (of course) includes the name and author but also links to the other tables.
Be creative!
Make sure to populate all tables!
Explaination:
Following are the table in the database :
(1) ER Diagram to organize your comic books is given below:
The ER Diagram has following entities:
The Mapping Cardinality between the entities are as follows:
There is a one to many relationship between :
As one book can be of many size and many books can be there of same size. So we have BOOK_SIZE as entity which stores Size of every book.
(2) Table view of all the table are as follows :
(3) Following are the contents of the table :