Database Management System - B.Tech. 5th Semester Examination, 2022
Database Management System
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.
-
Four DML commands are:
-
View is a:
-
The different levels of data abstraction are:
-
Which of the following is true?
-
What is the purpose of project operation:
-
The weak entity set does not have sufficient attributes to form.
-
Which normal form is considered adequate for normal relational database design?
-
Which of the following is not a super key in R(V, W, X, Y, Z) with primary key VY?
-
Consider R (A, B, C, D, E) with following FDs:- \( A \rightarrow B \), \( A \rightarrow C \), \( CD \rightarrow E \), \( B \rightarrow D \), \( E \rightarrow A \) which of the following FDs is not implied by above set?
-
Which of the following is a concurrency control protocol.
-
What is attribute closure \( X^+ \) of a set of attributes X with respect to a set of FDs F? Give the algorithm for commuting \( X^+ \) for X.
-
Relation R (ABCDEFGH) contains only atomic values for all of its attributes. \( F = \{ CH \rightarrow G, A \rightarrow BC, B \rightarrow CFH, E \rightarrow A, F \rightarrow EG \} \) is a set of functional dependencies (FDs) so that F is exactly the set of FDs that hold for R.
(i) Find all the candidate keys the relation R have?
(ii) Find the highest normal form with justification in which R exist?
-
Briefly explain the ACID properties of the transactions to ensure integrity of the data.
-
Consider the transactions T1, T2 and T3 and schedules S1 and S2 given below:
T1: r1 (X); r1(Z); w1 (X); w1 (Z)
T2: r2 (Y); r2 (Z); w2 (Z)
T3: r3 (Y); r3 (X); w3 (Y)
S1: r1 (X); r3(Y); r3(X); r2 (Y); r2(Z); w3(Y); w2 (Z); r1 (Z); w1(X); w1 (Z).
S2: r1 (X); r3 (Y); r2(Y); r3(X); r1(Z); r2(Z); w3 (Y); w1 (X); w2(Z); w1 (Z).
Determine which of the above schedules are conflict - serializable.
-
Explain the reasons for the update, insertion and deletion anomalies.
-
With example discuss candidate key, super key, primary key and foreign key.
-
What are the typical phases of query processing? With a sketch, discuss these phases in high level query processing.
-
When is the decomposition of relation schema R into two relation schemes X and Y, said to be a loss-less-join decomposition? Why is this property so important? Explain with example.
-
Explain the terms partial functional dependency' and 'transitive dependency'. Define 2NF and 3 NF in relation with these terms.
-
Discuss the concept of generalization, specialization and aggregation.
-
Consider the following employee database, primary keys are underlined.
Employee (ename, street, city)
Works (ename, cname, salary)
Company (cname, city)
Manages (cname, manager-name)
Write SQL queries to:
(i) Find the names of all the employees who work for XYZ.
(ii) Find all employees who live in the same city as the company for which they work.
(iii) Find all employees who live in the same cities and on the same streets as do their managers.
(iv) Find all employees who earn more than the average salary of all employees of their company.
-
Discuss the advantages and disadvantages of using DBMS as compared to a conventional file system.
-
What is weak entity set? Explain with suitable example. How weak entities are represented as relational schemas.