Question

In: Computer Science

Instructions: Draw an ER diagram for the following description. Identify the keys and give the cardinality...

Instructions: Draw an ER diagram for the following description. Identify the keys and give the cardinality of all relationships (e.g. 1:1, N:1, N: M). Make sure you note your assumptions.

Assume you are creating a database for a library system with the following properties:

  1. The library contains one or several copies of the same book.

  2. Every copy of a book has a copy number and is located at a specific location on a shelf.

  3. A copy is identified by the copy number and the ISBN number of the book.

  4. Every book has a unique ISBN, a publication year, a title, an author, and a number of

    pages.

  5. Books are published by publishers.

  6. A publisher has a name as well as a location.

  7. Within the library system, books are assigned to one or several genres.

  8. A category has a name and no further properties.

  9. Each reader needs to provide his/her family name, his/her first name, his/her city, and

    his/her date of birth to register at the library.

  10. Each reader gets a unique reader number. Readers borrow copies of books. Upon

    borrowing the return date is stored.

A good strategy is to start by identifying the entities and their associated attributes, then identity the relationships present in this description.

Solutions

Expert Solution

The entities and attributes for the given data are:-

Book entity:- It has author, ISBN number, publication year, no.of pages, title. ISBN is the Primary Key and No. of pages is the weak entity for Book Entity.

Duplicate book:- It has ISBN number, and copy number. Where copy no. is the Primary Key for duplicate book.

Genre:- It has Category as attribute and a name as derived attribute.

Publishers:- It has Location, Name as attributes.

Reader:- It has First name, city, reader_no., family name, DOB, Return date. Where the Reader_no. is the primary key and family name is the weak entity for reader.

** 0..*, 1..*,1..1 represents the cardinality of the relations.


Related Solutions

Draw an ER diagram with these attributes ( ER diagram for SQL for a library database)...
Draw an ER diagram with these attributes ( ER diagram for SQL for a library database) DRAW ER DIAGRAM AS ONE FULL LIBRARY SYSTEM, NOT DIFFERENT FOR EACH ATTRIBUTE. Attributes :           Customer Cust_ID: key identifier, required, simple, single valued Cust_Name{ first name, last name}: Key Identifier, simple;composite, multivaried   Address{street, city,zip,state}: Customer address, required, composite, single can be derived from zip (placeholder, there should be another attribute here to represent the books taken out by the customer. Not sure.)           Inventory Book_ID:...
Draw an ER diagram with these attributes ( ER diagram for SQL for a library database)...
Draw an ER diagram with these attributes ( ER diagram for SQL for a library database) Attributes :           Customer Cust_ID: key identifier, required, simple, single valued Cust_Name{ first name, last name}: Key Identifier, simple;composite, multivaried   Address{street, city,zip,state}: Customer address, required, composite, single can be derived from zip (placeholder, there should be another attribute here to represent the books taken out by the customer. Not sure.)           Inventory Book_ID: Key identifier, required, simple single valued Book_Name: Key identifier, required, simple, single-valued Genre:...
Draw the diagram (ER / MR / UML) for a database containing the following characteristics: •...
Draw the diagram (ER / MR / UML) for a database containing the following characteristics: • Presence sensor that stores presence information with its timestamp and its location. • Distance sensor that saves distance information with its timestamp and its location. • An actuator of a switch that energizes a bulb, where the record of its been with your timestamp and your location. • An actuator of a motor that opens a door, where the record of its been with...
Model the following cases by ER diagrams. Identify the keys, attributes and relationship cardinalities, and convert...
Model the following cases by ER diagrams. Identify the keys, attributes and relationship cardinalities, and convert them into table schemas. Provide necessary assumptions to support your model. The following descriptions are about the inventory information. a) Each product item has ID, description, quantity in the inventory, unit price and a supplier. b) Suppliers have unique ID, addresses, phone numbers, and names. c) Each address is made up of a street address, a city, and a postcode. d) The purchase order...
5. Draw an entity-relationship diagram, including minimum and maximum cardinality, for the following: The system stores...
5. Draw an entity-relationship diagram, including minimum and maximum cardinality, for the following: The system stores information about two things: cars and owners. A car has attributes for make, model, and year. The owner has attributes for name and address. Assume that a car must be owned by one owner and an owner can own many cars, but an owner might not own any cars (perhaps she just sold them all, but you still want a record of her in...
Given the business rule below. Draw the Data directories for each entities & ER Diagram. A...
Given the business rule below. Draw the Data directories for each entities & ER Diagram. A DOCTOR can be scheduled for many APPOINTMENTS, but may not have any scheduled at all. Doctor has the attributes such as DoctorID, Firstname, & Lastname. Appointment has attributes such as AppointmentID, Date & Reason. A PATIENT can schedule one or more appointments. Patient entity has attributes such as PatientID, PatientName & Address. One appointment is scheduled with exactly one patient. An appointment must generate...
I need to draw an ER diagram for a future database necessary to hold application data...
I need to draw an ER diagram for a future database necessary to hold application data for students wishing to apply for an internship at a tech company. The students will provide the following information on the application: first name, last name, email, phone number, address, city, state, postal code, major, currently enrolled in school?, expected date of graduation, web framework of choice, list of programming languages in which the student is proficient, SAT score, ACT score, GPA, 4 character...
Draw an ER diagram containing the ConferenceSeries, the ConferenceEvent, and the ConferenceTrack entitysets where each ConferenceSeries...
Draw an ER diagram containing the ConferenceSeries, the ConferenceEvent, and the ConferenceTrack entitysets where each ConferenceSeries can be linked to zero or many ConferenceEvent entities, and each Conference Event may be linked to one or many ConferenceTracks. ConferenceTrack should not exists without a ConferenceEvent. Choose an appropriate relationship name. Then augment the model with an entityset Venue and a relationship named OrganizedAt associating each ConferenceEvent with exactly one Venue. Assume that a Venue must have run at least one ConferenceEvent....
Draw a schematic diagram and a context diagram for a standard blender. Identify all of the...
Draw a schematic diagram and a context diagram for a standard blender. Identify all of the external entities and label all of the interactions.
1-Draw The ER diagram on the problem of your choice, depicting the 1:1 , 1:M and...
1-Draw The ER diagram on the problem of your choice, depicting the 1:1 , 1:M and M:M relationship. 2-Explain with the pictorial representation the three schema architecture of DBMS.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT