



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




Ollscoil na hÉireann, Gaillimh GX_____ National University of Ireland, Galway
Autumn Examinations, 2008/
Exam Code(s) 2BF
3BC 4BC1, 4BC2, 4BC3, 4BC4, 4BC 1BD1, 1BD 1AE
Exam(s) Bachelor of Science in Business Information Systems Bachelor of Commerce Bachelor of Commerce (International) Higher Diploma in Systems Analysis Master of Business Studies (Electronic Commerce)
Module(s) MS210 Database Technologies MS310 Database Systems MS885.i Database Systems and Languages 1
External Examiner(s) Professor H. van der Heijden
Internal Examiner(s) Professor J. F. Collins Dr. M. A. Lang
Instructions Answer Question 5 and any other 2 questions.
Duration 2½ hours
Paper No. 1 of 1 Repeat Paper N/A Special Paper N/A No. of Answer Books N/A Requirements Handout None MCQ None Statistical Tables None Graph Paper None Log Graph Paper None Other Material None No. of Pages 9 Department(s) Accountancy & Finance
Answer QUESTION FIVE and any other TWO questions
Outline the main ways in which data integrity may be compromised and the mechanisms engaged by relational databases to enforce integrity rules.
Your answer should include: entity integrity, required values, unique values, referential integrity, and transaction locking.
(25 marks) (Suggested time: 35 minutes)
(a) One-to-One relationships (1:1) (7 marks) (Suggested time: 10 minutes)
(b) Many-to-Many relationships (M:M) (10 marks) (Suggested time: 15 minutes)
(c) Recursive One-to-Many relationships (8 marks) (Suggested time: 10 minutes)
(b) Illustrate how SQL commands may be used to enforce security. (5 marks) Suggested time: 5 minutes
(c) Outline the main provisions of the Data Protection Acts 1988 – 2003.
(5 marks) Suggested time: 5 minutes
Notes:
It is recommended that you clearly state any assumptions that you make.
Any valid dialect of SQL is acceptable , provided that you are consistent throughout.
A number of hints are provided to assist along the way, but you don’t have to follow these. Marks will not be lost for not doing so, where you come up with equally valid alternative solutions.
However, if you produce a solution which works but is unnecessarily cumbersome , some marks will be deducted for failing to produce an acceptably elegant solution.
A larger version of the database schema is reproduced on the last page of this examination paper. You may find it helpful to detach that page from the rest of the examination paper.
a) What film ( Title ) received the “Golden Bear” award ( Award_Category ) at the Berlin International Film Festival ( Award_Ceremony ) in 2008?
(2 marks)
b) List the names of all actors born in Barcelona, Spain between 1950 and 1975. Sort the list by ascending order of surname, then forename.
(2 marks)
c) Produce a cast listing (i.e. names of the actors, and the parts they played) for the film titled “One Flew Over The Cuckoo’s Nest” which was released in
(3 marks)
d) List the titles of all films directed by John Ford which feature the actor John Wayne.
(3 marks)
e) List the names of all actors who have ever played the part of “Batman” ( Part ) in a movie. No actor’s name should appear more than once in this list i.e. eliminate duplicate entries where an actor has played this part in two or more films.
(3 marks)
f) List the titles of all Documentary films ( Genre ) that contain the word “Journey”. (Hint: Use a pattern matching wildcard based on the film Title ) (3 marks)
g) How many Irish actors ( Country_of_Birth ) have ever won an Oscar ( Award_Ceremony ) in any category? Be careful not to count the same actor twice where he/she has won multiple Oscar awards.
(4 marks)
h) The entry for the actress Robert de Niro incorrectly records that he was born in Naples, Italy. It should correctly read New York, USA. Perform the necessary modification to implement this correction.
(4 marks)
i) List the names of all actors who have won the “Best Performance by an Actress in a Motion Picture – Drama” award ( Award_Category ) at the Golden Globes ( Award_Ceremony ) on two or more occasions.
(4 marks)