DBMS - Midterm - SP2021
DBMS - Midterm - SP2021
DBMS - Midterm - SP2021
Instructions:
• Filling out Student-ID and Student-Name on exam header is mandatory.
• Do not remove or change any part of exam header or question paper.
• Write down your answers in given space or at the end of exam paper with proper title “Answer
for Question# _ _”.
• Answers should be formatted correctly (font size, alignment and etc)
• Handwritten text or image should be on A4 size page with clear visibility of contents.
• Only PDF format is accepted (Student are advise to install necessary software)
• In case of CHEATING, COPIED material or any unfair means would result in negative marking
or ZERO.
A mandatory recorded viva session will be conducted to ascertain the quality of answer scripts
where deemed necessary.
Caution: Duration to perform Midterm Assessment is 02 hours only. Extra 01 hour is given to
cater all kinds of odds in submission of Answer-sheet. Therefore, if you failed to upload
answer sheet on LMS (in PDF format) within 03 hours limit, you would be considered as
ABSENT/FAILED.
Question-1 (6-
Marks)
A) Discuss the main characteristics of the database approach and how it differs from
traditional file systems. What are the different types of database end users? Discuss the
main activities of each.
B) Elaborate functions of Database.
You are required to provide solution for the manufacturing company to automate their socks manufacturing
process. It will bring effectiveness to production departments in production of socks from knitting to
packaging process. Proposed System, will not only save time in recording counts of dozen of socks but also
notify user about the stock and helps QC to add remarks against production. Thus, proposed system offers a
good solution to maintain & track record of items while achieving effectiveness and efficiency.
You’ll develop a requirement to propose a solution. What database you will be using and why, which
architecture you will use to develop the solution. Try and answer the subsequent questions:
Page 1/3
Who can use this info for what purpose? Keep in mind there could also be different typesof
users. E.g., administrator, Supervisor, QA.
What operations the system has to offer to support such purpose? Imagine yourself aclient
who will use the system.
What knowledge has to be hold on in info to support such operations?
What assumptions you're creating once you design the info/database.
The question that everybody asks is "how massive your application ought to be?”
Question-2 (6-
Marks)
A) Let suppose if you are a database designer, and if you were designing a Web-based Systemto
make Online Coffee Shop for your friend and decide to sell coffee and deliver it, whichDBMS
architecture and model you choose and Why? Explain your answer with the help ofother models.
Identify entities, relationships, attributes while designing the database. (Thereshould be at least
five tables or more than that). List cardinalities on both ends of eachrelationship (0..1, 1..*, 1..1)
- minimum 6 (2 for each relationship identified between entities)
B) Identify the relation in given problem and represent it formally. Also write a query to explainthe
result.
(1,3),(2,6)(3,11),(4,1
8)(5,27)
Question-3 (6-Marks)
A) Consider the following Schema of Shaheen Airline Pakistan; they want you to generate
reports by using the following Retired Employee Information Database.
A) The following relations kind a part of a on-line database (the relations area unit self-
explanatory):
Page 2/3
ORDERLINE(Order#, Part#., Amount-Ordered)
PART(Part#., Desc, Stock, Item-Class, Unit -Price)
b. With respect to this relative schema, write SQL statements for the subsequent queries:
1. List the name of the client United Nations agency has placed Order 123 (i.e. Order: = 123).
2. List the names of shoppers United Nations agency in Cardiff and have ordered half 456 (i.e.
Part. 456).
3. List the order numbers (Order) for orders that contain a minimum of three elements and
also the quantity ordered are minimum of ten.
4. List the outline (Desc), of these elements that the typical quantity ordered is bigger than the
number ordered for half .6 (Part. = 456) so as 123.(Order. .123).
Question-5 (6-Marks)
B) Rigorously browse the business description below draw an ERD for the information. Your
ERD ought to embrace all necessary parts (entities, attributes, entity identifiers, and
relationships). A relationship ought to have a reputation with a verb.
Description: A messenger company “my-courier.pk” own riders that are used for delivering the
parcels to areas. The corporate has created information to trace the riders on it, as well as every
riders ID, name, last parcel delivery date. Parcel weight, parcel mode, time, cost and fuel per
hour used. The information additionally keeps information of every Area like its Sector-ID,
name, population, house per Area, and overall Area radius. Additionally all information related
to every trip, as well as trip ID, the trip date, and also the range of parcels per trip. Every trip
takes just one rider, however a rider could also be used for multiple visits on totally different
Areas.
Page 3/3