THE SUPERIOR UNIVERSITY LAHORE
dd
Task#3
Semester: 4th Section: Data Science
AAA
Faculty of Computer Science and Information Technology
:
Name: Fiaz Hussain
Roll No: Bdsm-s22-003
Instructions:
Copying of the assignment will result in failure.
Question # AssignmentCLO
Sub-Question should
# be submitted inBT
Domain and word or pdf.Total Marks
Level
1 4 Cognitive 10
Question 1:
Questions:
● List all the entities shown in the ER diagram.
1) Employee
2) factory
3) model
4) part
5) vendor
● For each entity, specify its attributes as shown in the diagram.
1) Employee
1. ID
2. Name
3. position
4. pay rate
5. pay park
2) Factory
1. City
2. Throughput
3) Vendor
1. Contact info
2. E-mail
3. Photo
4. Name
4) Model
1. Designated
2. Name
3. Number
4. Type
5. Application
● Relationships :
A. read as “one-to-one”
B. read as “one-to-many” (equivalently, N: 1, or “many-to-one”)
C. read as “many-to-many”
● Primary Keys:
○ Determine and indicate which attributes in each entity are designated as primary
keys.
a. ID is the primary key of employee entity
b. designated is primary key in the model entity
c. part number the primary key in part entity
d. name is primary in vendor entity
● Foreign Keys:
○ Identify any foreign keys in the diagram. Which entities do they reference, and
which attributes serve as foreign keys?
a. Number is a foreign key for assembly line
● Weak Entities:
○ Are there any associative entities or weak entities in the diagram? If so, specify
them.
a. Assembly Line