Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3.2 A private book collector is designing a database to keep track of her purchases and book holdings. Consider the entity set Book with attributes

image text in transcribedimage text in transcribed

3.2 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, number Pages, 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, total Amount, 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 add appropriate symbols to the E-R diagram. C. Assume there is ander 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 3.4 Design a database to keep data about college students, their academic advisors, the clubs they belong to the moderators of the clubs, and the activities that the clubs sponsor. Assume each student is assigned to one academic advisor, but an advisor counsels many students. Advisors do not have to be faculty members. Each student can belong to any number of clubs, and the clubs can sponsor any number of activities. The club must have some student members in order to exist. Each activity is sponsored by exactly one club, but there might be several activities scheduled for one day. Each club has one moderator, who might or might not be a faculty member. Draw a complete E-R diagram for this example. Include all constraints. 3.5 A dentist's office needs to keep information about patients, the num- ber of visits they make to the office, work that must be performed, procedures performed during visits, charges and payments for treatment, and laboratory supplies and services. Assume there is only one dentist, so there is no need to store information about the dentist in the database. There are several hundred patients. Patients make many visits, and the database should store information about the services performed during each visit and the charges for each of the services. There is standard list of charges, kept outside the database. The office uses three dental laboratories that provide sup- plies and services, such as fabricating dentures. Draw a complete E-R diagram for this example. 3.2 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, number Pages, 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, total Amount, 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 add appropriate symbols to the E-R diagram. C. Assume there is ander 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 3.4 Design a database to keep data about college students, their academic advisors, the clubs they belong to the moderators of the clubs, and the activities that the clubs sponsor. Assume each student is assigned to one academic advisor, but an advisor counsels many students. Advisors do not have to be faculty members. Each student can belong to any number of clubs, and the clubs can sponsor any number of activities. The club must have some student members in order to exist. Each activity is sponsored by exactly one club, but there might be several activities scheduled for one day. Each club has one moderator, who might or might not be a faculty member. Draw a complete E-R diagram for this example. Include all constraints. 3.5 A dentist's office needs to keep information about patients, the num- ber of visits they make to the office, work that must be performed, procedures performed during visits, charges and payments for treatment, and laboratory supplies and services. Assume there is only one dentist, so there is no need to store information about the dentist in the database. There are several hundred patients. Patients make many visits, and the database should store information about the services performed during each visit and the charges for each of the services. There is standard list of charges, kept outside the database. The office uses three dental laboratories that provide sup- plies and services, such as fabricating dentures. Draw a complete E-R diagram for this example

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions

Question

Write a Python program to check an input number is prime or not.

Answered: 1 week ago