DBMS-Assignment3
DBMS-Assignment3
2024-25
Database Management System (CSC-401)
Assignment 3
Q2. Define the five basic operators of relational algebra with an example each. (CO1)
Q3. Explain entity integrity and referential integrity rules in relational model. (CO1)
Show how these are realized in SQL.
(CO3)
Q4. Consider the following relations:
S (S#, SNAME, STATUS, CITY)
SP (S#, P#, QTY)
P (P#, PNAME, COLOR, WEIGHT, CITY)
Give an expression in SQL for each of queries below:
(i) Get supplier names for supplier who supply at least one red part
(ii) Get supplier names for supplier who do not supply part P2.
Q5. Define a view. Construct a view for the above relations which has the information about
suppliers and the parts they supply. The view contains the S#, SNAME, P# , PNAME
renamed as SNO, NAME, PNO, PNAME. (CO3)
Q6. Differentiate between the following: (i) Theta Join. (ii) Equi Join. (iii) Natural Join
(iv) Outer Join. (CO1)
Q7. Explain the integrity constraints: Not Null, Unique, Primary Key with an example each.
Is the combination ‘Not Null, Primary Key’ a valid combination? Justify. (CO1)