WINSEM2023-24 BCSE302L TH CH2023240502444 Reference Material II 19-01-2024 Mod2 ER Diagrams-More Examples
WINSEM2023-24 BCSE302L TH CH2023240502444 Reference Material II 19-01-2024 Mod2 ER Diagrams-More Examples
WINSEM2023-24 BCSE302L TH CH2023240502444 Reference Material II 19-01-2024 Mod2 ER Diagrams-More Examples
1 1
For Binary Relationship With Weak Entity
Set-
Problem-01
Find the tables required for the following ER diagram in relational model
Problem 1-Solution
• MR1 (M1 , M2 , M3 , P1)
• P (P1 , P2)
• NR2 (P1 , N1 , N2)
Problem 2
Solution
factory(city,throughput)
assemblyline (city, number,throughput)
Problem-03
Problem 3-Solution
Problem-4
Solution
For (1:N) relationship
employee(ID,name,position,payrate,paytype,city,
supervisor_id)
factory(city,throughput)
factory(city,throughput,ID)
employee(ID,name,position,payrate,paytype)
Problem 5
Solution
Model(name,number,type)
Model_appli(name,number,application)
Problem 6
Step 1: Mapping Regular Entity types
Step 2:Mapping Weak entity
Step 3: : Mapping 1 : 1 Relation types
Step 4: Mapping of Binary 1:N relation types
Step 5: Mapping of Binary M:N Relationship
Types
Step 6: Mapping of Multivalued attributes
Practice Question
Consider a MAIL_ORDER database in which employees take
orders for parts from customers.
are summarized as follows:
■ The mail order company has employees, each identified by a
unique employee number, first and last name, and Zip Code.
■ Each customer of the company is identified by a unique
customer number, first and last name, and Zip Code.
■ Each part sold by the company is identified by a unique part
number, a part name, price, and quantity in stock.
■ Each order placed by a customer is taken by an employee and
is given a unique order number.
Each order contains specified quantities of one or more parts.
Each order has a date of receipt as well as an expected ship date.
The actual ship date is also recorded.