DATABASE MANAGEMENT SYSTEMS
Instructions:
- The marks are indicated in the right-hand margin.
- There are NINE questions in this paper.
- Attempt FIVE questions in all.
- Question No. 1 is compulsory.
Which statement is FALSE?
For relation: R(A,B,C); FDs={A→B, B→A}, Which statement is true?
The relational algebra expression πA(R)−πA((πA(R)×S)−R) is equivalent to:
Which query is best solved using division operation?
A relation is in BCNF if:
Suppose relation R(A,B,C) is decomposed into: R1(A,B) and R2(B,C)
The decomposition is lossless if:Compared with B-tree indexing, hashing is preferred when queries mainly involve:
For a B-tree of order m, every non-root internal node must have at least:
Consider the schedule: R1(X), R2(X), W1(X), W2(X). The schedule is:
Under strict two-phase locking:
Explain the three-level database architecture with a neat diagram. How does it support data abstraction and data independence?
Explain integrity constraints in DBMS. Discuss different types with examples.
Design an ER diagram for a Hospital Management System containing Patients, Doctors, Departments, and Appointments. Clearly identify entities, attributes, relationships, and cardinalities.
What is a JOIN in SQL? Explain various JOIN operations with a suitable example for each and discuss their applications in database systems.
Consider:
Student(SID, Name, Dept, Age)
Course(CID, CName, Faculty)
Enroll(SID, CID, Marks)Write relational algebra expressions to find:
- Students enrolled in DBMS
- Students scoring >80 marks
- Students not enrolled in any course
Write SQL queries:
- Find highest marks
- Find average marks department-wise
- Display students enrolled in more than two courses
Translate the following query into tuple relational calculus: “Find names of students from CSE department.”
Convert the following relational algebra into SQL:
πName(σMarks>60(Student ⋈ Enroll))
For relation R(A,B,C,D,E) functional dependencies are given as follows:
A→BC
CD→E
B→D
Find candidate keys.
Explain different normal forms up to BCNF with examples.
Explain different indexing techniques used in databases.
Consider a hash table of size 10 with the hash function h(k)=k mod 10. Insert the keys 23, 43, 13, 27, 37, and 50 into the hash table. Construct the hash table using separate chaining for collision resolution and then reconstruct it using linear probing. Compare the final arrangements obtained using both methods.
Define serializability. Explain conflict and view serializability.
Explain two-phase locking protocol with an example.
Explain concurrency control problems such as lost update, dirty read, and unrepeatable read.
Explain authentication, authorization, and the role of encryption in DBMS security.
Explain object-oriented databases and discuss their advantages over relational databases.
Dependency Preservation and Lossless Decomposition
Database Recovery Techniques
SQL injection attacks
data mining
