Question

Create an ER diagram for the following database scenario. Include an indication of the cardinality of...

Create an ER diagram for the following database scenario. Include an indication of the cardinality of relationships and indicate any mandatory relationships. State any assumptions that you make!

Library Bookstore Database

  • Book authors have names (real and nicknames sometimes).
  • Book authors write books.
  • Books have titles, the year they came out, a genre, a length, and a rating.
  • A rating can be G, PG, PG-13, or R.
  • Books are published by publishers.
  • There are various different publishers around the world.
  • Book publishers hire authors to write books and pay them a salary

Then, Convert the above ER digram to a table

Homework Answers

Answer #1

ER diagram designed in Crow' foot model of my choice as the question did not specify which model needed

ERD converted to tables using SQL DDL statements using SQL Server of my choice as question did not specify which DBMS platform to use .Please find the screenshots of the SQL code below. For tables names , tbl_<table Name> is used for naming conventions .

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Consider the following relational schema: Author (first_name, last_name, address) Book (title, copyright, first_name, last_name) Edition (isbn,...
Consider the following relational schema: Author (first_name, last_name, address) Book (title, copyright, first_name, last_name) Edition (isbn, pub_date, list_price, publisher, title, copyright) Bookstore (name, address) Stock (store_name, store_price, isbn) - The Author relation gives the author's first name, last name and address. Each (first_name-last_name) pair is unique. - The Book relation gives the title, copyright date, and the first and last names of the author. A book can have only one author however, an author can write more than one book....
Please create the queries listed below using the books database under question 4. Thanks for the...
Please create the queries listed below using the books database under question 4. Thanks for the help 1. List the number of books, the minimum price, maximum price, and average sales of history books. The format of output is: Number Min Price Max Price Average Sale 2. List the number of books and the average number of pages published by pub_id P01. 3. List the number of books and the total sales of the books with price greater than $15....
Aggregation 1. List the following about history books: number of history books, the minimum price, maximum...
Aggregation 1. List the following about history books: number of history books, the minimum price, maximum price, and average sales. The format of output is: "Number" "Min Price" "Max Price" "Average Sale" 2. List the number of books and the average number of pages published by pub_id 01. 3. For each book type, list the the number of books and the average price. Sort the results by the number of books Functions 4. List the name(s) of the publisher(s) that...