You are on page 1of 4

Knowledge Unit of Science

University of Management & Technology

M.MUNEEB UR REHMAN

BSCS

19014020-006

DATBASE SYSTEMS(lab)

ASSIGNEMENT # 05

21-APRIL-2021

MA’AM MAROOF KOUSAR

QUESTION NO # 01
ENTITIES

The entities in this scenario are

o University
o Faculty
o School
o Program
o Course
o Lecturer
o Student

The primary keys could be

University – University name


Faculty – Faculty name
School – School name
Program – Program code
Course – Course number
Lecturer – Employee ID
Student – Student ID

RELATIONS

The university contains many faculties

 Each faculty is divided into several schools


 Each school offers numerous programs
 Each program contains many courses
 Each school employs many lecturers
 Lecturers can teach many courses
 Lecturers can teach the same course many times
 Courses can be taught by more than one lecturer
1
 A student is enrolled in only one program
 Students can be enrolled in many courses at the same time

ATTRIBUTES

University: (university name, Address)

Faculty: (Faculty name, Department)

School: (School name)

Program: (Program code, Program name, Courses, Offering Courses,


enrolled students)

Course: (course name, category, Course number)

Lecturer: (Emp ID, first name, last name, date of birth, salary, phone
number)

Student: (Stu ID, first name, last name, date of birth, phone no,
semester no, courses)

Question no 02
ENTITIES

The entities in this scenario are

o Component
o Product
o Supplier
o Component Supplier
o Build

The primary keys could be:

 Component -- CompID
 Product -- ProdID
2
 Supplier -- SuppID
 Component Supplier – CompID, ProdID
 Build -- CompID, ProdID
ATTRIBUTES
Component -- (CompID, CompName, Description)
Product -- (ProdID, ProdName, QtyOnHand)
Supplier – (SuppID, SuppName)
Component Supplier -- (CompID, SuppID)
Build – (CompID, ProdID, QtyOfComp)

You might also like