0% found this document useful (0 votes)
140 views10 pages

DBMS Papers

dbms

Uploaded by

Dev Ahuja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
140 views10 pages

DBMS Papers

dbms

Uploaded by

Dev Ahuja
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

First Term Examination

Fourth Scmester |B.Tech.|Felb.-March-2017


P'aper Code: ETCS-208 Sub: Database Management Systems
Time: I½ Hours Maximum Marks: 30

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.

e Define the concept of aggregation in an E-R diagram. Give one


example where this concept is useful.
(d) What is generalized projection? Explain with the help of an
example.

(c) Explain how triggers are executed.


(a) What is the difference between the terms 'relation' and 'relation (3)
schema"? Explain with an example.
(b) Consider a database used to record the marks that students get in (5)
different exams of different courses. Construct an E-R diagram that
models exam as an entity and uses a ternary relationship for the
above database. Clcarly state the assunptions made if any.
(c) Does the relational model, as seen by an SQL query writer, provide (2)
physical and logical data independence? Explain
Q.3 sa) Explain Division operation in relational algcbra. Given the (4)
following relations
A B1 B2
Sno pno pno pno
SI PI P2 P2
SI P2 P4
SI P3
SI P4
S2 PI
S2 P2 A A
Sne
Calculate () A + B, T'
(2) A+B
|S
Consider the following schema lor an instiltute's library:
Student (Roll No, Name, Father - name, Branch)
Book (ISBN, Title, Aüthor, Publisher)

(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)

(c) Diferentiate between theta- join and equi-join (2)

(d) Explain the importance of defining views. (2)

-XX
Topic. Date.

Bomatdsnt
Baamha Cse

hee Pullaho ABe and


Studt poll o Taaueo Rollo ar

Boe Tse
Bok TOBN oue, TSBN

-Dat-o-houeK Tant, 2o1

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

Time: 1:301lrs. Maximum Marks: 30

Note: Q. No. Iis compulsory and attempt any two morequestions from the remaining

Q.No. I (a) Differentiate between Procedural and Non-Procedural Query Language.


(b)
(C
Define Latic in ER- Diagram. iieucy h ginsnal'zutt, spral
Define the concept of Aggregation withan-example.
(d) How to represent weak entity set.
(c) Define view with the help of example.
(2X5-10]

Q.No. 2 Given the relations


LOAN BORROWER

Loan No. Branch Name Amount Cust Name Loan No.


L-170 ICICI 30,000 John L-170
L-230 SBI 40,000 Smith -130
L-260 PNB 25,000 L-155
Adam

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

Q.No. 3 a) Explain the Three Level Architecture of DBMS. (5)


b) What is akey? Explain Super Key, Primary Key and Foreign Key: (5)

Q. No.4 Explain the following.


a) Triggers (3)
b) Data Definition Language (3)
c) Set of Relations are
USER SCHEME( Card No,B Name, B Addr)
SUPPLIER SCHEME(Acc _No.,S_Name,Price, DOS)
BORROWER( Acc No., Card No., DOD)
Write the SQL Query for
)Find out the name and address of borrowers who have issued a book on 2/feb/2016. (2)
Äi) Find the name of the suppliers with maximum price. (2)
selet B_rame, Badd

BoardN Üseene. Cads,


C)seket Srame
Please write your Roll No
immedian Roll No.
Fiest Tern Examinntion
V
Semester : |B.T'ech] Sept.,2011
P'aper Code-ETCS-309
Time: 1hr 30 Min Sub: DBMS
Max. Marks:30
Note-Q1 iscompulsory. Attempt any two more questions from the rest.
Q1. (a) llow DBMS provides users with a considerable degrec of data
(b) Differentiate between a primary independence?(2x5 10)
key and a super kcy.
(c) Definc the following in terms of an þram:
(i) Descriptive attributes alaohip l
(ii) Total participation
Convert the followving SQ. query into an cquivalent relational
Select A , . A, algebra cxpression:
From r|, I2 Im Al, A - An
(c) Explain generalized projection.AE,Ffr
Q2. (a) Consider the following database and answer thehinee exrent
lollowing qucrics in
rclational algcbra (21212)
Tcacher (Tname, strect, city)
Teach (Tname, schoolname, salary)
School (School Name, City)
(i) Write name of all teachers who work for XYZ
school.
(ii)Find names, citics of all teachers, who work for ABC school.
(ii) Find namcs of all tcachers, who live in same city as the school in
which they work.
(b) Differentiatc between cartesian product and
natural join operation. (4)
X
Q3. (a) Differentiate between the terms relation and relation schema. (2)
(b) Design an E-R diagram for keeping track of the exploits of your favourite
tcam. You should store the matches playcd, the scores in cach sports
match, the playcrs in
cach match and individual player statistics for each match. Summary
should be modcled as derived statistics
attributes.
(5)
(c) Let R (A, B, C) and let r and r; both be relations on
schema R. Give an
expression SQL that is equivalent to gach of the following queries :
in

(ü) AB(r) TBc 2) ebet A,C, .B ko ,, 2)

='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'.

Atplie,, ahipmeut,, faats,hjut


Applien.Ano Ahpmants.
and pats- pno2 shipGpno
colo hd

()slet prame, colo , nama

whee hupplieas Ahipmans-s

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

Aet ctye Pe?


whe Cnplee- rame Har
Kempleename taet,

oih&ohy
ley oolote laom hs
whe ConpanyamSBr'

You might also like