Question

In: Computer Science

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: Key identifier, required, simple single valued

  • Book_Name: Key identifier, required, simple, single-valued

  • Genre: required: simple; single valued

  • Publication_Date: required; simple; single valued

         

         Transaction

  •    Book_ID: Key identifier, required, simple, single valued

  • Rental_Date: required, simple, single valued

  • Rental cost: required, simple, single valued

  • Rental_Date: required, simple, single valued

Solutions

Expert Solution

ER diagram for the given table attributes:

Notes: We have three tables Customer, Inventory and Transaction - We converted them to Entities in ER diagram. The attributes of table become attributes of Entities. Note that while a table may have multiple key Attributes, each entity will have a single primary key which is represented as underlined. As the placeholder attribute for Customer table was supposed to represent Books rented, we assume this was Book_ID as foreign key (FK). This way, we create a 1:1 Relationship between Customer and Inventory. Note that Transaction has just Book_ID (which is FK from Inventory) as the only key attribute - This means Transaction is a weak entity dependent on Inventory in a dependent Relationship. Note that this Relationship is assumed to be 1:N - A book may have multiple transaction (at different dates) but a transaction belong to a single book. Note that Transaction also has two redundent attributes of same name Rental Date - We changed one to Rental Date 2


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) 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...
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...
Design the database using the ER approach. Then using Java and SQL, implement the following functionality:...
Design the database using the ER approach. Then using Java and SQL, implement the following functionality: Implement a button called “Initialize Database”. When a user clicks it, all necessary tables will be created (or recreated) automatically, with each table be populated with at least 10 tuples so that each query below will return some results. All students should use the database name “sampledb”, username “john”, and password “pass1234”. Implement a user registration and login interface so that only a registered...
Draw the Swimlanes Activity diagram for Library Information System.
Draw the Swimlanes Activity diagram for Library Information System.
project on hotel management in dbms with er diagram and table (sql) please give answer
project on hotel management in dbms with er diagram and table (sql) please give answer
Draw ATM Scenario and Library Scenario by component diagram and state machine diagram
Draw ATM Scenario and Library Scenario by component diagram and state machine diagram
Construct an ER diagram for a database system that models data of the following situation. You...
Construct an ER diagram for a database system that models data of the following situation. You are creating a database for a stock trading company. The company has clients and financial officers. Each client is either an individual or another legal entity (e.g. another company). A client has a name, social security number, address, contact information, the date that entered the database system, and also a ranking that the trading company keeps internally (high, med, low). Financial officers have a...
Create a database and design an ER diagram for the given question. Must link the related...
Create a database and design an ER diagram for the given question. Must link the related tables then implement the design using MySQL. Insert at least 5 records. Ensure that the data to be added are related to other tables. Follow this format in creating the database and table: Database format: databasename_yourname Table format: tablename_yourname QUESTION: Company ABC has the following business rules. A department employs many employees, but each employee is employed by only one department. A division operates...
1.For an information system at a library, draw i. a context diagram ii. a diagram O...
1.For an information system at a library, draw i. a context diagram ii. a diagram O DFD iii. an expert diagram 3 ( for the late penalty process) Assume that the Processes at the library are: A. enrolment of members B. issue Books/periodicals/DVD/Toys C. Return Books/periodicals/DVD/Toys D. Renew books/periodicals/DVD/Toys E. Late penalty after due date for return unless renewed F. Reserve Books/Periodicals/DVD/Toys
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT