DBMS Cie 2
DBMS Cie 2
DBMS Cie 2
Course Code
20AM4PCDBM Course Title:|Databasemanagement systems
Maximum Marks 40 Date : 24-08-2022
Semesteer 4
:
Faculty FHandling the Course :SBS
Instructions: Internal Choice is provided in
Part -
art Part A
Total 5 Marks (No Choice)
Q. No. Question Marks Co | Level
la What is union compatibility? Why do the UNION, INTERSECTION, and 5M
DIFFERENCE operations require that the relations on which they are
applied be union compatible?
Part B
Total 15 Marks (No Choice)
Page 1 of 3
U.S.N.
Part C
Total 20 Marks (Internal Choice)
Q. No. Question
Marks CO Level
3a User 3
10M
1d Name Age Gender Occupationid Cityld
John 25 Male 3
Sara 20 Female
Victor 31 Male
Jane 27 Female
Occupation City
Occupationid OccupationName Cityld CityName
Accountant Calgary
Phamacst Boston
Toronto
e. PName.Gendecname-Boston(ser City))
Page 2 of 3
a. Tl 4
TIP =T2.A T2
b. Tl T1.Q= T2.B 2
T1 T2
C.
TLP =T2.A
d. TI a T2
TI.Q= T2.B
e. Tlu T2
f. Tl T2
4
(T1.P =T2.A AND T1R =
T2.C)
TABLE T1 TABLE T2
PaR ABC
10 a 10 b
15 8 25 c 3
25 a 6 10 b 5
Consider the following relations for a database that keeps track of automobile 10M
4a
sales in a car dealership (OPTION refers to some optional equipment installed on
an automobile):
First, specify the foreign keys for this schema, stating any assumptions you
make. Next, populate the relations with a few sample tuples, and then give an
of an insertion in the SALE and SALESPERSON relations that violates the
example
referential integrity constraints and of another insertion that does not.
OR
Page 3 of 3