Académique Documents
Professionnel Documents
Culture Documents
ALTERNATIVE ASSESSMENT/EXAMINATIONS
SEPTEMBER/DECEMBER 2014
Course Code and Title: DBST5001 - Advanced Databases
Instructions to Candidates
1. This paper has five (5) pages and three (3) sections.
2. You are required to answer only three (3) questions in Section A. Only the first three (3)
responses will be marked.
3. You are required to answer all questions in Section B.
4. You are required to answer only one (1) question in Section C. Only the first response will be
marked.
5. Use the answer booklet for all answers.
6. Write your Student ID in the space provided at the top of each page
1. Students please note that academic dishonesty (or cheating) includes but is not limited to
plagiarism, collusion, falsification, replication, taking unauthorized notes or devices into an
examination, obtaining an unauthorized copy of the examination paper, communicating or
trying to communicate with another candidate during the examination, and being a party to
impersonation in relation to an examination.
2. The above mentioned and any other actions which compromise the integrity of the academic
evaluation process will be fully investigated and addressed in accordance with UTT’s
academic regulations.
3. Please be reminded that speaking without the Invigilator’s permission is NOT allowed.
Provide brief explanation, description, or discussion. State any assumptions you might have to
avoid overly lengthy answers. Choose only three (3) questions. Only the first three responses
will be marked.
2. Use a simple example and/or diagram to describe the potential problems that may occur
in a multi-user database if concurrency control techniques are not fully implemented.
You answer should include the following in your discussion, transaction scheduling
techniques and how data may be lost. [10 marks]
3. Explain each of the following transaction management terms. As examples write a single
sentence explaining the key idea. Each is worth two (2) marks (hint: you are writing very
brief two (2) sentence description for each).
[10 marks]
a. Schedule
b. Cascaded rollback
c. Optimistic locking
d. Pessimistic locking
e. Checkpoint
4. Explain how the ACID properties affect database transactions behavior. Give simple
examples and/or diagrams to illustrate your answer.
[10 marks]
© The University of Trinidad & Tobago
September/December 2014 Alternative Examinations
(DBST5001)
Page 2 of 5
SECTION B – ( 45 marks )
Answer all questions.
Question 1
The following database contains Information about actors, plays, and roles performed.
Customer(custID, firstname, midinit, lastmame, dob, email, phone)
Vehicle (RegNum, type, Model, DateManufactured)
Registration (custID, RegNum, Date)
Repair(InvoiceNum, custID, RegNum, Date, Cost)
1. Write the SQL statements that define the relational schema (tables) for this database.
Identify all appropriate keys.
[10 marks]
b. COUNT RegNum(Date < "01/01/06" (Registration))
c. RegNum COUNT InvoiceNum(Repair)
π
d. CustID, InvoiceNum(Registration X Repair)
π
e. CustID( MAX Cost (Repair))
f. RegNum, Date(Repair=⋈RegNum=RegNum Vehicle)
π
[12 marks]
Question 2
Determine whether deadlock exists for the scenario above. [2 marks]
Question 1
Compare and contrast a data warehouse in terms of function, content and structure with an OLTP
database? [5 marks]
For each of the following items, explain the underlying concepts involved, any associated
benefits or limitations, typical applications and features. Give examples and/or diagrams to
illustrate your answer.
a. OLAP, its varieties, the role of aggregation and the impact on SQL [5 marks]
d. Explain the term ‘ETL’ with respect to data warehousing. Highlight common techniques,
problems or issues in each stage of the use of ETL. [5 marks]
Question 2
----THE END---