Query Languages - DPP 01 Discussion Notes
Query Languages - DPP 01 Discussion Notes
Query Languages - DPP 01 Discussion Notes
ENGINEERING
Database
Management System
Query Languages
A S1 only B S2 only
A 5 B 8
C 10 D 11
[MCQ]
#Q. Let R1 and R2 be two relations which are union compatible with the same
set of attributes.
S1: R1 R2 = T1 ⋈T2
S2: R1 R2 = T1 ⋈T2
Which of the above statement(s) are INCORRECT?
A S1 only
B S2 only
D Neither S1 nor S2
[MSQ]
#Q. Consider the relation R(ABCD) which of the following relational algebra
expression return the lowest value of B? (R1 and R2 are rename of R)
I. ΠR2⋅B (R1 ⨝ R1.B < R2.B R2)
II. ΠB R – ΠR1⋅B (R1 ⨝ R1.B > R2.B R2)
III. ΠB R – ΠR1⋅B (R1 ⨝ R1.B < R2.B R2)
IV. ΠB R
A I B II
C III D IV
[MCQ]
#Q. Consider a Schema with Two Relations P (U, V, X) and Q (X, Y, Z) where all
values are integer. There is no assumptions about the keys. Consider the
following relational algebra expression.
I. U.Z(P ⨝ X = 3 Q)
II. U.Z(U (P) × C = 3 (Q))
II. U(X=3 (P) × E (X = 3(Q))
IV. U.(X=3 (P) × X (Q))
Which of the above are equivalent?
A I B II
C III D IV
[MCQ]
B The sids of the male and female students who obtained the maximum marks
in their respective gender.
C The sids of male student who scored higher than all the female students
D None
[MSQ]
Eid ( Work ) − Eid ( Work ) pid ( Project ) − Eid Pid ( works )
B Eid Name = m
C
Eid ( Work ) − Eid ( Work ) pid
(Name < > m
( Project ) ) Eid Pid
– ( works )
None
D
[MCQ]
#Q. Consider the two relations R1 and R2 such that they have no attributes in
common then
S1: R1 ⋈ R2 = R1 × R2
S2: R1 ⋈ R2 =
Which of the given statement(s) is/are correct?
A S1 only
B S2 only
D Neither S1 nor S2
THANK - YOU