Database Revision Questions PDF
Database Revision Questions PDF
Page 1 of 2
D. Tree. 10. In tuple relational calculus P1 → P2 is
9. In case of entity integrity, the primary equivalent to
key may be A. ¬P1 ∨ P2
A. Not Null B. P1 ∨ P2
B. Null C. P1 ∧ P2
C. Both Null & not Null. D. P1 ∧ ¬P2
D. Any value.
SECTION B: Structural (15 marks)
1. Describe the GRANT function and explain, how it relates to security. Privileges may be granted?
How are they revoked? (2 marks)
2. Explain (a) Heap file (b) Sorted file. Also discuss their advantages and disadvantages. (3 marks)
3. Explain the integrity constraints: Not Null, Unique, Primary Key with an example each.
Is the combination ‘Not Null, Primary Key’ a valid combination? Justify. (4 marsk)
4. What is data independence? Explain the difference between physical and logical data
independence. (2.5 marks)
5. Consider the following relational schemas: (1.5 marks)
EMPLOYEE (EMPLOYEE_NAME, STREET, CITY)
WORKS (EMPLOYEE_NAME, COMPANYNAME, SALARY)
COMPANY (COMPANY_NAME, CITY)
Specify the table definitions in SQL.
6. Discuss the correspondence between the E-R model construct and the relation model construct.
Show how each E-R model construct can be mapped to the relational model using the
suitable example? (2 marks)
Page 2 of 2