





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
Semester 1 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
OLLSCOIL NA hÉIREANN, GAILLIMH
National University of Ireland, Galway
_______________________________
Semester I Examinations, 2008/ _______________________________
Bachelor of Commerce – Final Year DATABASE TECHNOLOGIES (MS310)
Bachelor of Science in Business Information Systems – Second Year DATABASE SYSTEMS (MS210)
Higher Diploma in Systems Analysis Master of Business Studies (Electronic Commerce) DATABASE SYSTEMS & LANGUAGES I (MS885.i)
Professor H. van der Heijden Professor J. F. Collins Dr. M. A. Lang
Time Allowed: TWO AND A HALF Hours (2h 30m)
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)
Below is an example of an end-of-term student report. Using the technique of normalisation , you are required to produce a data model which complies with the rules of third normal form. At each stage of the transformation from un- normalised form (0NF) to third normal form (3NF), clearly explain what changes you make, and why these are necessary.
Student Name: Tomás Campbell Class: 5C Date of Birth: April 20, 1982 Address: Atlantic Drive Days Absent: 3 Liscannor Attendance: 96% Co. Clare
Term: Spring 2008 Date: March 31, 2008
A = 85-100%; B = 70-84%; C = 55-69%; D = 40-54%; NG = 0-39%
Subject Mark Grade Comments English 68 C Needs to read more; avoid txt abbrevs History 72 B Keen and interested student, well done Physics 85 A Excellent result, has much potential Accounting 84 B Very good student but can do better French 65 C Could benefit from a summer abroad! Mathematics 80 B Satisfactory
Overall Average: 75.7% Overall Placing: Top 10%
Performance in Extra-curricular Activities: Tomás makes excellent contributions to the school drama society and is a regular member of the badminton squad.
(18 marks) Suggested time: 25 minutes
(b) In designing a database, it is important to carefully reflect upon assumptions and exceptions as these can impact decisions such as the choice of keys, the cardinality of relationships, and integrity rules. Briefly discuss this statement.
(7 marks) Suggested time: 10 minutes
Notes:
h) List the PPS number, name, and place of birth of all citizens in the database who are nationals of EU member states. No person’s details should be displayed in the list more than once (as could happen if a person had joint nationality of two or more states).
(3 marks)
i) List the PPS number and names of all citizens who have nationality of more than one country.
(4 marks)
j) List the name, gender, and date of birth of the first baby born in Letterkenny ( Place_of_Birth ) in the year 2000. As time of birth is not recorded in the database, your query may return more than one record (i.e. babies born on the same day). The query results should be sorted in ascending order of surname followed by ascending order of firstname.
(Hint: Use a sub-query. You may not assume that the first baby was born on January 1, 2000 ) (4 marks)
k) What was the minimum, maximum, and average income earned by citizens employed as Architects ( Occupn_Type ) based in county Limerick ( County ) in the 2006 tax year? (4 marks)
l) By an amazing coincidence, two brothers had daughters named Mary, both born on June 10, 2008 in Clonmel ( Place_of_Birth ). An error was made when recording one of these births in the database. For one of the babies, whose PPS number is 12345678M, her father should have been recorded as James O’Brien, but was incorrectly recorded as his twin brother, Joseph. The two brothers were born in Glasgow on March 30, 1975 ( DOB ) and were the only persons with the surname “O’Brien” born in Glasgow ( Place_of_Birth ) on that day. Perform the necessary modifications to correct the database. (5 marks)
m) List the PPS number and names of all citizens whose fathers were born in any country other than Ireland or the United Kingdom ( Country_of_Birth ).
(Hint: Use a self-join based on Father_PPS and PPS_Num fields ) (5 marks)
n) Produce a query that on two separate lines displays the gender and average income earned by Female and Male citizens in the 2007 tax year.
(Hint: As each citizen can have many employments in any given year, you should firstly create a view to compute each citizen’s total income arising from all their employments in 2007. Then use this view to work out the average income for male and female citizens ) (6 marks)
(Total marks for Question 5: 50 marks) Suggested time: 80 minutes