DBS Practice
DBS Practice
plkoblypeNo
Typetor
1..
IPublishet Ilaces Iindot PurchawOrder
kequires
publisBherNo 1..1 1.1
printlobNo purchaseOrderNo
Detals
SAllocated
Manages
.
Uses
Item
item No
Q.3. Give the 3NF normalized relational database schema for the given un-normalized data, along with al.
intermediate steps.
S
Sid s_Name S-Per_Address \SS-T-Apt Hostel
s-T-Bldng
4
S-T-Area ST_City sub_ jd Subject_opted
Sat Town
401 Ali Kotri Rawalpindi S_I Bio
402 Adil Lalhore Hostel 4 QAU Islamabad S_2 Maths
403 Shalhid Haripur 6 Hostel 3 QAU Islamabad s_2 Maths
404 Ali Kotri 5 Hostel S QAU Islamabad S_3 Physics
Q.4. Short Notes Bx412)
a) Outline your assignment project's mission objectives and user roles.
b) Fact Finding Technique -Research
c) Relational Data Model
d) Chasm Trap
Quaid-i-Azam University
Department of Computer Sciences
CS-235 Database St stems Terminal Marks S0 Time 3 hours Date 15-06-2023
Name: Regn. #
Q.1 (2 x6)-4 16
a) Short Notes
a) External User Views of a Database System
b) Difference between Logical and Phy sical Data Independence
c) Database System Development Life Cycle
d) Chasm Trap in Entity Relationship Diagram
e) Division operator of Relational Algebra
) View Concept in SQL
b)Fragmentation in Distributed Database System
Q.2 Consider Figure A for answering Q.2.a. and Q.2.b. (4+4) -8
a) Give the detail data requirements of the system whose conceptual design (ERD) is given in the Figure A. For
atributes of entities and relationships. make suitable assumptions. The detail should be given clearly and in formal
manner.
b) Give the Logical Relational Model for the Conceptual Design given in Figure A.
Dale
Tme stamo
SHIP MOVEMENT Time
Longtude
1:N
ttde
HISTORY
SHIP AT {1.1)
HOME_PORT PORT 1:1
e0T MST (Contnen
Name
1:1 0:N
0:N 1:1
IN 4STATEICOUNTRY
Pname )H PORT
0:N
Namg
1:1
SENOCEANALAKE
Figure A
Q.3. Identify the functional dependencies in the given unnomalized data. Convert the unnormalized data table into
3NF (Normalization). Also give the INF and 2NF intermediate forms of the unnormalized data table. (6)
Teor cditor de no dy nanedesadrauttor_sd author_nae auhor ad dr
4216 wooll deslgn arguslar $3 ianic 5-tor
4216 WOoll deslgn argusl 44 bolton Imaluev
4216 19 deslgn aTyusl 71 laenig malh
27 a1alysis arguz 26 folkstone
3789 27 analyss tgus2
27 analysis tgus2
l/2
Q.4Create the Enhanced Entity Relationship Diagram from the given data reauirements for the system. (5)
The management of a large retail store would like a datahase to keen track of sales activities. The reu
analysis for this database led to the six entities and their unigue identifiers shown in Figure B. Tne
assertions describe the data relationships:
Each customer has one job title, but different Customers may have the same job
thtie.
Each customer may place many orders, but only one customer may place a paticular
Each department has many sales people, but each sales person must work in only one department.
Each department has many items for sale, but each item is sold in only one department. ("Item" means item
type, like IBM PC).
For each order, items ordered in different involve different sales people. but all itemsorder.
departments must salesperson. In other words. for each
ordered within one department must be handled by exactly one
each item has exactly one salesperson; and for each order.each department has exactly one saiey
Number of
Entity key Key occurrences
Entity in characters lengthtmax)
Customer Cust-no 6 80,000
Job jcb-no
order-no 200,0
Figure B Order
Salesperson salesid 20 150
Departnent 2 10
depa-no
Item item-no 6 5,000
Q.3. How Enhanced Entity Relationship diagram specialization/generalization classification is converted to relational
logical model? Explain with the help of an example.
Database System Quiz 5 Marks 08-05-2023
Create ERD for the given data requirements for afight booking database design scenario:
The airline has one or more airplanes.
An airplane has a model number, a unique registration number, and the capacity to take
one or more passengers.
An airplane flight has aunique flight number, adeparture airport, adestination airport, a
departure date and time, and an arrival date and time.
Each flight is carried out by a single airplane.
Apassenger has given names, a surname, and a unique email address.
A passenger can book a seat on a flight.
ModelNumber GivenNames
apacity EmailAddres
Books
FlightNumber Flies N
From Booking
Flight HasBooking
DepartureDate
DepartureTime
(ArrivalDate
(ArrivalTime
Convert to Book Notation for practice! In Sessional, Mid, Terminal: Only book notation acceptable!
Quad4-Azam University
Department of Computer Sdences Date 07-07-2021
cS 225 Database Systems Terminal Time 3 hours
Aconsultancycompany wishes to create a database to help manage its projects. Each project is for a speafic dient
and has anominated project manager. The project is divded into anumber of work packages and employees bill
their time and expenses againt awork package. Each employee has aspecific role, which defines the charging rate
for the client. Over time, an employee can wort on several work packages associated with the same pro,ect. In
addition, most, but not al, work packages have anumber of associated documentsas delverabies, each of which
may be written by more than one enpioyee. Take any assumptios you deem appopriate.