Docsity

DATABASE QUESTIONS PAPER, Exams of Database Management Systems (DBMS)

Partial preview of the text

Download DATABASE QUESTIONS PAPER and more Exams Database Management Systems (DBMS) in PDF only on Docsity!

Final Assessment Test - July 2023 Course: BCSE302L - Database Systems Class NBR(s): 0682/0684/0686/0697/0702/0706/0710/ 0719/0723/0724/0726/0730/0735/0737/0741/0743/ 0747/0751/0755/0758/0762/0767/0770/0774/0943/ 1372 Time: Three Hours Answer ALL Questions (10 X 10 = 100 Marks) a) Consider a typical online course registration system such as Coursera or Udacity. How do you enforce the concept of data abstraction and data independence by elaborating each level of abstraction with your example? Describe briefly the function of the catalog in a DBMS. Show clearly how the catalog allows the DBMS to provide data independence and why data modelling is important? b Major airline companies that provide passenger services in Singapore are UniAir, TransAsia Airways, Far Eastern Transport, Great China Airlines, etc. Singapore Federal Flight Administration (SFFA) keeps a database with lots of information on all airlines. The information consists of: Each airplane has an identification number, name of the contact person, and telephone number. For each aircraft identification number, capacity and model are recorded. Each employee has an employee identification number, name, address, birthday, sex, position with the company and qualification. Each route has a route identification number, origin, destination, classification (into domestic or international route), distance of the route and price charged per passenger. Each airline keeps the information about their buy/sell transactions (for example, selling an airplane ticket is a sell transaction, and paying for maintenance is a buy transaction). Each transaction has a transaction identification number, date, description, and amount of money paid/received. Design a suitable ER diagram for the above scenario with all possible entities, attributes and the corresponding relationship with its participations. a) Arelation /ADOR is defined with attributes NAME (unique), STREET, CITY, STATE and POSTCODE for storing the customer address details. The functional dependencies of the relation are given below: POSTCODE > CITY, STATE STREET, CITY, STATE > POSTCODE NAME ~> STREET, CITY, STATE Check if the given relation is in BCNF? 3NF? 2NF? Slot: A1+TAL Max. Marks: 100 KEEPING MOBILE PHONE/SMART WATCH, EVEN IN ‘OFF’ POSITION IS TREATED AS EXAM MALPRACTICE [5] [5] [5] Page 1 of 3 | } j b) Consider the following relation scheme R (A, B,C, D,£,F, GH, 1, J} [5] together with the following functional dependencies: {F> H, E}, {{C, G, A}>{B, D, JH, ({B}>{A, I}, {B, G} {C}. Use Armstrong's axioms to Prove formally that this set of functional dependencies implies that {B, G} > {D}. Arelation R has attributes A, B, CD, E, and satisfies the following FDs: AD>BC BSD CDSE EDA a) Show that (A, 8, C) and (A, 0, E) are a lossless decomposition of R. (3] b) Show that (A, B,C ) and (C, D, E) are not a lossless decomposition of R. [3] c) Show that (4, B, © ) and (A, D, E) are not a dependency Preserving [4] decomposition of R. Consider the following tables. Write a SQL to find out the customer id of any ict “Queso Cabrales” with quantity >6. Transform the SQL into a collection of relational algebra which denotes different execution plans of the SQL. Also, visualize the answer with the help of the Query tree. Orders Products ee Order ID | Customer ID Product Name 10263 epee 10311 be Gudbrandsdalsost Mozzarella di Giovanni Orders Details OrderID | ProductiD UnitPrice | Quantity 10263 11 21.00 12 10263 42 14.00 10 10263 72 34.80 5 10311 42 14.00 6 10311 69 28.80 7 Consider a B+-tree of order three. Show the results of entering one by one the keys that are three letter strings: (era, ban, bat, kin, day, log, rye, max, won, ace, ado, bug, cop, gas, let, fax ) (in that order) to an initially empty B+-tree. Assume that you use lexicographic ordering to compare the strings. Show the state of the tree after every 4 insertions. Page 2 of 3