0% found this document useful (0 votes)
18 views

Task 3 DataBase

The document contains instructions for a computer science assignment on entity relationship (ER) modeling. It asks the student to: 1) List the entities in an ER diagram including Employee, Factory, Model, Part, and Vendor. 2) Specify the attributes of each entity shown in the diagram. 3) Identify the relationship types between entities as one-to-one, one-to-many, or many-to-many. 4) Determine the primary keys for each entity. 5) Identify any foreign keys and the entities they reference. 6) Specify any associative or weak entities, which includes Assembly Line.

Uploaded by

fiazhussainlak
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Task 3 DataBase

The document contains instructions for a computer science assignment on entity relationship (ER) modeling. It asks the student to: 1) List the entities in an ER diagram including Employee, Factory, Model, Part, and Vendor. 2) Specify the attributes of each entity shown in the diagram. 3) Identify the relationship types between entities as one-to-one, one-to-many, or many-to-many. 4) Determine the primary keys for each entity. 5) Identify any foreign keys and the entities they reference. 6) Specify any associative or weak entities, which includes Assembly Line.

Uploaded by

fiazhussainlak
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

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

You might also like