DBMS - Midterm - SP2021

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

COLLEGE OF COMPUTING AND INFORMATION SCIENCES

Midterm Assessment Spring 2021 Semester


Class Id 106249, 106248 Course Title Database Management Systems
Program BSCS Campus / Shift Main Campus / Morning
Date 11– March 2021 Total points 30
Muhammad Minhal Raza/Hassan
Duration 02 hours Faculty Name
Zulfiqar
Student Id Student Name

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.

B) Case Study Based Database Designing

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.

Retired Employee (eid:int, name:varchar(25),age:int, pension:int)


Duration_Work(eid:int, did:int, dname:varchar(25), work_to,work_from,percent_time:DATETIME)
Department_Worked(did:int, dname:varchar(25), depart_budget:long int, manager:int)

Design ERD for the above scenario


1) What are the ages of the retired employees who have pension more than Rs 1 Lac?
2) Find the names of the retired employee who serves the department more than 30% of time
of their life and have a budget of over Rs 10 Lac.
3) Find the name of the employee who exactly serves one department only in their whole life?
4) Find the name of the departments who have an/are retired to be employee(s) having age
between 50 to 60 only?
5) Find the name of the retired employee who serves only “Cargo Department” or who serves
the department more than half of their life time in single department.( Hint : Use UNION (U)
Set Operation)
Question-4 (6-Marks)

A) The following relations kind a part of a on-line database (the relations area unit self-
explanatory):

CUSTOMER/CLIENT/SHOPPERS/BUYERS(Cust#, CAddress, Ctown, Balance,Cname)


ORDER(Order.#, Date, Cust#.)

Page 2/3
ORDERLINE(Order#, Part#., Amount-Ordered)
PART(Part#., Desc, Stock, Item-Class, Unit -Price)

a. Design a physical ER for the above scenario.

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

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy