Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

How do you turn this into a relational database schema? A private book collector is designing a database to keep track of her purchases and

How do you turn this into a relational database schema?

A private book collector is designing a database to keep track of her purchases and book holdings. Consider the entity set Book with attributes title, author, publisher, pubDate, numberPages, condition, cost,and datePurchased.

a. Show how the entity set and its attributes would be represented on an E-R diagram.

b. Describe the domain of the cost attribute, making assumptions as needed

c. Identify a superkey for the Book entity set.

d. Identify all candidate keys for the entity set.

e. Identify a primary key for the entity set and underline it on the E-R diagram

a. Assume that in the same scenario as in Exercise 3.2, there is an entity set called Purchase with attributes purchaseDate, totalAmount, and any others you wish to add to describe book purchases. A purchase may include several books. Show how this entity set and its relationship to Book would be represented on the E-R diagram.

b. Stating any necessary assumptions, make a decision about the cardinality and participation constraints of the relationship, and as appropriate symbols to the E-R diagram.

c. Assume there is another entity called Seller to be added to the diagram. The book collector makes purchases from many sellers, but each purchase is made from one seller. Making up attributes as needed, add this entity and appropriate relationship(s) to the diagram.

Book: Database Illuminated Chapter 4

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

Database And Expert Systems Applications Dexa 2023 Workshops 34th International Conference Dexa 2023 Penang Malaysia August 28 30 2023 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Maqbool Khan

1st Edition

303139688X, 978-3031396885

More Books

Students also viewed these Databases questions

Question

5. Describe how contexts affect listening

Answered: 1 week ago