Total No. of Questions : 4] SEAT No.
8
23
P8555 [Total No. of Pages : 2
ic-
Oct-22/TE/Insem-525
tat
T.E. (Computer Engg.) (AI & DSE)
8s
DATABASE MANAGEMENT SYSTEM
2:1
02 91
(2019 Pattern) (Semester - I) (310241)
0:4
0
21
Time : 1 Hour] 3/1 13 [Max. Marks : 30
Instructions to the candidates :
0
0/2
.23 GP
1) Answer Q.1 or Q.2, Q.3 or Q.4.
2) Neat diagrams must be drawn wherever necessary.
3) Figures to the right indicate full marks.
E
80
8
4) Assume suitable data, if necessary.
C
23
ic-
16
Q1) a) For the database system to be usable, it must retrieve data efficiently.
tat
8.2
8s
The need of efficiency has led designers to use complex data structures
.24
to represent data in the database. Developers hide this complexity from
2:1
91
the database system users through several levels of abstraction. Explain
49
0:4
those levels of abstraction in detail with example. [5]
30
21
b) Draw an ER diagram for the banking system. Assume the banking
01
02
requirements are as given below. [10]
0/2
GP
• The bank is organized into branches. Each branch is located in a
3/1
particular city.
CE
80
8
• The bank offers two types of accounts: saving and current. Accounts
23
.23
can be held by more than one customer and a customer can have
ic-
16
more than one account.
tat
8.2
8s
• A loan originates at a particular branch and can be held by one or
.24
2:1
more customers
91
49
0:4
Identify the relationship among the entities along with the mapping
30
cardinalities, keys in the E.R. diagram. Construct appropriate tables for
21
E-R diagram designed with above requirements.
01
02
OR
0/2
GP
Q2) a) Explain the concept of candidate key and primary key, foreign key. Identify
3/1
above listed key for the following schema: [6]
CE
80
Person (driver_id, name, address, contactno)
.23
Car(licence, model, year)
16
Owns (driver_id, licence)
8.2
.24
P.T.O.
49
b) Draw architecture of DBMS system and explain function of following
8
23
components: [9]
ic-
i) Storage manager
tat
ii) Query Processor
8s
2:1
Q3) a) What is view and how to create it? Can you update view? If yes, how? If
02 91
not, why not? [5]
0:4
0
b) Defined stored procedure. Explain the creating and calling stored
21
3/1 13
procedure with example. [5]
0
0/2
c) Consider following schema. [5]
.23 GP
Student_fee_details (rollno, name, fee_deposited, date)
E
80
8
Write a trigger to preserve old values of student fee details before updating
C
23
in the table.
ic-
16
OR
tat
8.2
8s
Q4) a) Consider the following schemes [6]
.24
2:1
Supplier(SNO, Sname, Status, City)
91
49
0:4
Parts (PNO, Pname, Color, Weight, City)
30
21
Shipments(SNO,PNO,QTY)
01
02
Write SQL queries for the following:
0/2
GP
i) Find shipment information (SNO, Sname, PNO, Pname, QTY) for
3/1
those having quantity less than 157.
CE
80
8
23
ii) List SNO, Sname, PNO, Pname for those suppliers who made
.23
ic-
shipments of parts whose quantity is larger than the average quantity
16
tat
iii) Find aggregate quantity of PNO 1692 of color green for which
8.2
8s
shipments made by supplier number who residing Mumbai.
.24
2:1
91
49
0:4
30
b) What is an index? What are the advantages and disadvantages of using
21
index on a table? [4]
01
02
c) What is a trigger? How to create it? Discuss various types of triggers.[5]
0/2
GP
3/1
CE
80
.23
16
8.2
.24
Oct-22/TE/Insem-525 2
49