Database System - B.Tech 5th Semester Exam., 2017
Database 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.
-
A description of data in terms of a data model is called a _____
-
Information about the conceptual, external, and physical schemas is stored in the _____
-
The weak entity set must have participation in the _____ identifying relationship set.
-
The _____ also called arity, of a relation is the number of fields.
-
In relational algebra renaming operation is denoted by _____ operator.
-
SQL queries are optimized by decomposing them into a collection of smaller units, called _____
-
The set of all functional dependencies (FDs) implied by a given set F of FDs is called the _____ F, denoted by _____
-
X→→Y is a trivial MVD if _____ or _____
-
_____ allows us to identify a point in a transaction and selectively roll back operations carried out after this point.
-
Design a generalization-specialization hierarchy for a motor-vehicle sales company. The company sells motor-cycles, passenger cars, vans, and buses. Justify your placement of attributes at each level of the hierarchy.
-
Explain the difference between condition-defined and user-defined constraints. Which of these constraints can the system check automatically? Explain your answer.
-
List two reasons why we may choose to define a view.
-
List two major problems with processing update operations expressed in terms of views.
-
Passengers (Name, Address, Age)
Reservations (Name, FlightNum, Seat)
Flights (FlightNum, DepartCity, DestinationCity, DepartureTime, ArrivalTime, MinutesLate)
Write the following queries in relational algebra:
(a) Get the names of passengers who had a reservation on a flight that was more than 30 minutes late.
(b) Get the names of passengers who had reservations on all flights that were more than 60 minutes late.
-
What is the dependency closure \( F^+ \) of a set F of FDs? How can you compute the closure of a given set F of FDs?
-
What is the attribute closure \( X^+ \) of a set of attributes X with respect to a set of FDs F? Give the algorithm for computing the attribute closure of a set X of attributes.
-
When is the decomposition of a relation schema R into two relation schemas X and Y said to be a lossless-join decomposition? Why is the property so important? Give a necessary and sufficient condition to test whether a decomposition is lossless-join.
-
Describe how a query block is translated into extended relational algebra. Describe and motivate the extensions to relational algebra. Why are \( \sigma\pi x \) expressions the focus of an optimizer?
-
When do two actions on the same data object conflict? Explain with example the anomalies that can be caused by conflicting actions.
-
What transaction characteristics can a programmer control in SQL? Explain in brief the different access modes and isolation levels in particular. How can the isolation level and access mode be set in the transaction? Show with example.