Question
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
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