Professional Documents
Culture Documents
For those that are incorrect explain why they are not
correct.
true
3. In case of any shut down during transaction before commit, undo is done automatically ?
c) Rollback
4. Atomicity ensures that once transaction changes are done, they cannot be undone or lost, even in the event
of a system failure.
A. Durability
5. Isolation means that the data used during the execution of a transaction cannot be used by a second
transaction until the first one is completed.
Ans:
Sparse - contains index records for only some search-key values.
Dense - Index record appears for every search-key value in the file.
(2 marks)
Adv:
Less space and less maintenance overhead for insertions and deletions.
Disadv:
Generally slower than dense index for locating records.
Applicable when records are sequentially ordered on search-key
(2 marks)
4. You are asked to develop a database system for an airline reservation system.
A. Determine 3 possible errors that could occur if multiple users are accessing the system at
the same time. Give suitable examples to illustrate the errors considering the scenario given
above.
4 marks each – 1 mark for naming the problem and 3 marks for example
Lost Update Problem
Temporary Update/Dirty Read
Incorrect Summary
Unrepeatable read
(12 marks)
B. In the above database there is a table named Booking with following details.
Create table Booking (bookingId, PassengerName, flightNo, ArrivalPort, DeparturePort)
Identify suitable columns to use B+tree and Bitmap index. Give your reasons.
(8 marks)
PassengerName (2 marks)
flightNo (2 marks)
Use Bitmap index
As cardinality is less than 1 (has duplicate values)
ArrivalPort/DeparturePort (2 marks)
Use Bitmap index
As cardinality is less than 1 (has duplicate values)