DBMS
DBMS
Section A
P1-0Jttt
IDUtuCltr S1adt11t
(ii) SELECT
(iii) INSERT
(v) DELETE
Emp loye e(em pID : inte ger, dept ID: inte ger,
emp Sala ry: integ er, emp Hob by: char (20) )
Dep artm ent( dept ID: integ er, dept N ame: char (20) ,
dept Floo r: integ er)
(d) Con side r the follo wing relat ions for a data base
that keep s track of busi ness trips of sales pers ons
work ing in a sale s offic e : (3)
P.T. 0.
~
4095 4
R s
A B C D B D E
15 1 15 a 1 a 15
20 2 25 a 3 a 20
25 4 20 b 1 a ZS
15 1 25 a 2 b 30
30 2 20 b 3 b null
P.T .0.
4095 6
Times tamp
1
Tl
read(X)
T2 --
----
2 X-X+lO
3 Read(X) ~
-
4 X=X+20
5 Write(X)
6 Write(X)
7 Commit
8 Commit
StudentC ourse
studentID studentName CGPA courseID course Name credits
key , doe s
(ii) As sum ing {A, B} as the pri ma ry
enc y?
the rel ati on R exh ibi t par tia l dep end
Jus tify yo ur ans we r.
Se cti on B
ST UD EN T
P.T .0 .
40 95 8
the
(i) Sp ec ify the ro le na me s for given
rel ati on shi p.
(ii) D ete rm ine the car din ali ty rat io • Jus t'f
1 Y you r
an sw er.
rel ati on up
(ii) If req uir ed , no rm ali ze the giv en
ste ps.
to 3N F. Sh ow all the int erm ed iat e
9
4095
(a) consider the foll ow ing rela tion sch em
).
a: (4)
(i) Ins ert a rec ord in the Enr oll tab le.
(ii) Del ete a rec ord from the Stu den t tab
le.
(b) Des crib e the thre e-s che ma arc hite ctu
re wit h the
hel p of a suit abl e dia gra m. In this con tex
t, giv e a
suit abl e exa mp le of dat a ind epe nde nce .
(3+2)
~ (c) Sta te and pro ve the Pse udo trai lsit ive
infe ren ce
rule.
(1+3+2)
4.
(a) Consider a rela tion R(A , B, C, D, E)
with the
following dep end enc ies :
(2)
P.T .0.
4095 10
{AB ➔ C, CD ➔ E DE
, -; B}
.
(b) Consiaer the following SQL statement :
(4)
(Rollno INT,
Marks DECIMAL(3,2),
DOB DATE);
retiredEmployee
empID empName oasicSalary k:leptName payGrade
101 Rahul 25000 Finance 1\BC
102 Rohit 35000 Admin DEF
103 Naman 15000 Research ABC
104 Sreejee 40000 Finance DEF
!_Q5 Pranay 22000 Admin PQR
106 Dheeraj 45000 Research l?QR
-
107 IAarav 14000 Finance ~BC
P.T .0.
4095 12
pensionGrade
payGrade Amount
ABC 2500
DEF 3000
PQR 3500
FROM retiredEmployee
GROUP BY deptName;
FROM retiredEmployee
~O VE ME N~
Tl
p T2
Q R A
10 B C
a 5 10
15 b 6
b 8
25 15 C 3
a 6 10 b 5
(i) PT (T l X T2 )
(ii) Tl - T2
(iii) Tl n T2
P. T. 0.
, 4095 14
. (a) Com pare and cont rast the tradi tiona l file
6
proce ssing appro ach with the datab ase approach
in the conte xt of the self-d escrib ing nature of the
datab ase syste m. (2)
A B C D (6)
1 2 3 4
1 2 3 5
6 7 8 2
2 1 3 4
(i) D ➔ A
(ii) BC ➔ D
(iii) BC ➔ A
15
P.T.0.
4095 16