Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Database Management System LAB

Lab 01

Student Name:

Zarish Saif

RC-56

Submitted To:
Ma’am Shazia

Date: 24.2.2022
Lab Task 01:
Question #1:
Entity Attributes Primary Key
Patient Ss# Ss#
Name
Insurance
Date-Admitted
Date-Checked-Out
Test Test-ID Test-ID
Test-Name
Date
Time
Result
Doctors Dss# Dss#
Specialization
Name

Relationship:
Patient:
The patient is checked by the doctor.
The patient is given a checkup test and it is logged/recorded.

Test:
The test is performed by the doctor.
The test is logged and performed on the patient.

Doctors:
Doctors perform the tests.
The doctor checks on the patient.
Question #02:
Entity Attributes Primary Key
Person Name Driver-ID
Address
Driver-Id
Damage-Amount
Car License License
Model
Year
Damage-Amount
Accident Report-Number Report-Number
Location
Date
Damage-Amount

Relationship:
Person:
The person was the owner of the car.
The driver was participated in the accident.

Car:
The car was driven by the person.
The car was in an accident.

Accident:
The accident happened to the car.
The accident involved the person.
Question #03:
Entity Attributes Primary Key
Student Name Student-ID
S-ID
Program
Grade
Course-Offerings Year Room
Section No.
Semester
Time
Room
Course Syllabus Course No.
Course No
Title
Credits
Instructor IID IID
Name
Department
Title

Relationship:
Student:
Student enrolls into the course-offerings based on their grades.
The student takes up course based on their prerequisite conditions.
Student is given the course by the instructor.

Course-Offerings:
Course-offerings are taken by students that are eligible.
Course-offerings is offered as a main course.
Course-offerings is taught by the instructor.

Course:
Course is offered by the course-offerings.
Course is taken by the student.
Course is instructed to the students by the instructor.
The course is taken based on its prerequisites.

Instructor:
The instructor teaches the course that is offered.
The instructor is available to teach the offered courses.
The instructor teaches the students.

Lab Task 02:


Scenario #1:
Entity Attributes Primary Key
Reality Show Name Name
Type/Genre
Basic-Info
Participants (Multiusers)
Television Name Name
Start Year
Head Office
Producer Company Name Company Name
Company Country
User Username Username
Password
Age

Relationship:
Reality Show:
The reality show is watched and rated by the multiple users, the minimal being 2.
The reality show is produced by one producer.
Each reality show is broadcasted on television to be watched.

Television:
Television hosts/broadcasts multiple reality shows.
The television is used by the user to watch these reality shows.

Producer:
Each producer can produce multiple reality shows, but only one producer for each show.

User:
The user watches the reality shows from the TV and rates them.

Scenario #2:
Entity Attributes Primary Key
Team Team-Name Team-Name
City
Coach
Game-Date
Game-Score
Player Skill Level Player Name
Player Name
Position
Injury Record Description ID
ID

Relationship:
Player:
The player has a captain in the team, each player is a part of just one team.
The player has their injury details recorded on the log for medical purposes.

Team:
Each team has a set of players, and one captain.
The team is set to play a game against an opposing team (either host or guest team).

Injury Record:
The injury record is logged with details of the players past injuries.

You might also like