DBMS Papers
DBMS Papers
Note: Q. No. 1is compusory and attempt any two more questions from the remaining.
Q.1 (a) Difierentiate between primary key, candidate key and supcr key. (5x2)=10
List two reasons why null values might be introduccd into the
database.
(P.T.O)
Issuc (Roll No., ISBN, Date of issue)
Wrile the following queries cither in relaioalalyebra or SQ1.
()List roll no. and nane of all students of the branch CSE. (2)
k2) l'ind the name of students who have issucd a book published (2)
by `ABC" publisher.
a) List title of all books issued on or before Jan 1, 2016. (2)
Let R-(A.B,C) and let r and r; both be relations on schema R. Give (2+1)
an expression in SQL. that is equivalent to cach of the following
queries:
1. lAR (r) AIhc (r2)
2. r U2
What is a stored procedure? Why it is useful? Give an example. (3)
-XX
Topic. Date.
Bomatdsnt
Baamha Cse
Boe Tse
Bok TOBN oue, TSBN
Arleet A, e B B g e
unin
First Term Examination
Fourth Senmester (B.Tech.J-Jan-May 2016
|Paper Code: ETCS-208 Subject: Database Management System
Note: Q. No. Iis compulsory and attempt any two morequestions from the remaining
a) Give the relation obrained by Natural Join, Outer Join, Left Outer Join and Right Outer Join, Equi-Join
and Theta-Join. (6)
b) Give the Relation Algebra for the following Query (4)
i) Find the Customer name having loan in ICICÍ branch./Ctran/o
ii) Find the Branch Name and Loan No. with the Loan Amount greater then 10,800.TCICEn
='ABc( Tahe
Jcnlreme
Ta))
Q4. (a) Explain the following joins :
(i) Theta join
(ii) Lefn Outer join (212)
(b) Write down the following queries in SQL. (6)
Supplicrs (sno, sname, pincode, city)
Parts (pno, pname, color, weight)
Projects (projno, projname, city)
Shipments (sno, pno. projno)
() Get supplier name and city for suppliers who supply to any projcct with a 'red'
colored part.
(ii) Get part name, color and project name supplied by supplier with sno 'sl' to a
project located in London'.
(iii) Get the project names which are supplicd by supplier 'Manoj' with the part 'Bolt'.
awd
condon
Ci) les jrame
ad
and yrane Bset
Roll.No.
IV Semester |B.Tech)
Paper Code: ETCS-208
Time: 1 Hr.
First-Term Examination February-2015
Sub: Database Management System
Note: Attempt Q. Iwhich is Max. Marks: 30
compulsory and any two more Questions from
Q.1 Fill in the blanks remaining.
a
RDBMS stands for.
b
DCL stands for....DAta Catsl (10)
check any function in Oracle oppe
C. A special table to
d. An association between two or
is.
e. The command to more entities is...
f.. Database level is eliminate a table from adatabase 2elatiashp
recursive relationship is athe users is....ien)..is,c3p..
closest to table <table name>,
g. A
h. In a 1:N relationship
relationship, the foreign between an entity and.
key is placed
hierarchy is one in whichin.CJ.table.
i. A
superclass/subclass
.Entity related to two or more subclass has/have..A. Superlass.
attributès that apply to somé but not all of the associated entities that each
instances of the entity. contains specialized
Q.2
Describe briefly with an example:
attribute, descriptiveattributes. derivedattribute, multivalued attribute, composite attributes, complex
b. What is Data
Independence? Explain logical and physical data independence. (5)
Q.3 (5)
a.
Consider the two tables Ti (P, Q, R), T2 (S, T, U) as shown in fig I.
Show the results of the following .(5)
Table TI Table T2
PO R STIU
a
C 2 10 d3 10
2 3 10
a -
i Gp-(Tl) fg1
i. Ip, R(TI)
ii. TIu T2
iv. TIO T2
V. TI-T2
b. Define the concept of aggregation. Give two examples of where this
concept isuseful. (5)
Q. 4
employee(employee-name, street, city)
works(employee-name, company-name, salary))
companycompany-name, city)
(5X2)
manages(employee-name, manager-name)
Consider the employee database
and give an expression in SQL or Relational Algebra for each of the following
queries
a. Find the names of all employees who work for SBI
b. Find the names and cities of residence of all employees who work for SBI
C. Find all employees in the database who do not work for SBI
d. Modify the database so that Hari now lives in Pune
e. Delete all tuples in the works relation for employees of SBI
Copanynamne
sBT' chee
ame emplgee Jelect
except
ermployeama selat
alis
emplyeramea enplye.
SRz'ar
conpa-naQ> whe
ma, select (6)
emplyee
Company-names are
ad SBr -me Company
eme select (a) AN
narro.
Aonplenema
oih&ohy
ley oolote laom hs
whe ConpanyamSBr'