Vous êtes sur la page 1sur 5

1

Institute of Southern Punjab, Multan Campus


Department of Computer Science

Lab Activity - Assignment No. 02&03: -


Lab Activity 1- Database Design Phase & Physical Designing of Relations
(ERD&EERD&Transformation into Relations/File/Tables)

1. ERD Designing:

Scenarios:
1. An employee may be recorded as having many jobs; a particular job may
be recorded as having been held by many employees.

2. A student may borrow some books from the library. A book in the
library must be borrowed by at most one student.

3. Each PATIENT has at least one or more patient histories; each instance
of patient HISTORY belongs to one patient.

Case Study 1:
Odeon Cinema and other international cinemas have decided to install a
centralized database. This database should keep information regarding cinemas
including its name, address and phone number. Each CINEMA must have one
or more THEATERS and each theater has a specific SHOWING TIME. During
these showing times, a MOVIE is shown to the public.
2
1

2. ERD Reading:

Scenario 1:

Scenario 2:

Scenario 3:
3
1

Enhanced Entity Relationship Diagram (EERD Designing)

3. EERD Designing:

Define each step in designing of an EERD like Total or Partial


Specialization, Disjoint or Overlap Rule, How many Subtype’s
and Supertype’s entities participate in a relationship of the given
below scenario. Design Subtype Discriminator from Disjoint or
Overlap Rule. Define each step with Reasoning
4
1

4. EERD Transformation into Relations/Tables:

Transform the following given EERD into Relations/Tables/Files in


MySQL via Code using Console in XAMMP as a simulator
5
1

Important Note:

a) Last Date & Time of Submission is updated on Blog.

b) Assignment must be submitted on the following E-mail


ID: noman.iefr@hotmail.com

c) Assignment First Cover page must be Assignment Top Sheet.

d) References (If Any) must be given according to the shown Standard.

e) Make a single text file of Code (Notepad File) which works efficiently
whenever executed in XAMPP for Question No. 4 (EERD
Transformation into Relations/Tables) with name:
labsolution.txt

f) Make a single PDF File starting with Assignment top Sheet and
including all Questions solution from Question 1 to Question 4
(Note: only include schema diagram in Question 4 )

g) Assignment File in PDF and text file of Code (Notepad File) must be
mailed in a single zipped folder.

h) Marks of this Assignment is Equivalent to 40 Marks.

i) Name of Assignment File/Document, Zipped File AND Subject


of E-Mail must be as per example given below: -

Your_Name-Your_Enrollment_No.-Program_Semester and Section

Example: Nouman-023R23-MCS3A(R)

j) Your Work must be Your Own!

h) No late assignment will be accepted at any cost!

(Anything Missing from above mentioned Points will result in Cancellation


of your Assignment)

Vous aimerez peut-être aussi