Docsity

Database Technologies Exam for B.Com & BIS, Semester 1, 2008/2009, Exams of Database Management Systems (DBMS)

Toggle sidebar
bg1
Ollscoil na hÉireann, Gaillimh GX_____
National University of Ireland, Galway
Semester 1 Examinations, 2008/2009
Exam Code(s) 2BF1
3BC1
4BC1, 4BC2, 4BC3, 4BC4, 4BC5
1BD1, 1BD3
1AE1
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
FOR INFORMATION OF EXAMINATIONS OFFICE ONLY
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
1
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Database Technologies Exam for B.Com & BIS, Semester 1, 2008/2009 and more Exams Database Management Systems (DBMS) in PDF only on Docsity!

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

FOR INFORMATION OF EXAMINATIONS OFFICE ONLY

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

  1. An essential requirement of a database management system (DBMS) is that it should assure data integrity.

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)

  1. (a) The principal of a local school has approached you with a view to designing a database which records student performance and attendance. At present, records are kept on paper and reports are manually produced. This is a tedious, inefficient and error-prone process.

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

  1. Given the tables and relationships depicted in the schema below, you are required to provide the SQL commands necessary to execute the transactions (a) to (n) which follow.

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.

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