Docsity

Business Info Systems Exam, NUI Galway, 2010/2011, Exams of Database Management Systems (DBMS)

Toggle sidebar
bg1
1
Ollscoil na hÉireann, Gaillimh
GX_____
National University of Ireland, Galway
Semester 1 Examinations, 2010/2011
Exam Code(s)
1MIS1
1MIS2
1AE1
Exam(s)
M.Sc. in Information Systems Management (Full-Time)
M.Sc. in Information Systems Management (Part-Time)
MBS in Electronic Commerce
Module(s)
MS805 Database Systems
External Examiner(s)
Dr. Danail Ivanov
Internal Examiner(s)
Dr. Tom Acton
Dr. Michael Lang
Instructions
Answer all questions.
Duration
2! hours
Paper No.
1 of 1
Repeat Paper
N/A
Special Paper
N/A
No. of Answer Books
N/A
Handout
Spare copy of diagram on last page of this examination paper
MCQ
None
Statistical Tables
None
Graph Paper
None
Log Graph Paper
None
Other Material
None
No. of Pages
7 (including this cover sheet)
Discipline
Business Information Systems (ext. 5064)
pf3
pf4
pf5

Partial preview of the text

Download Business Info Systems Exam, NUI Galway, 2010/2011 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, 2010/20 11 Exam Code(s) 1MIS 1MIS 1AE Exam(s) M.Sc. in Information Systems Management (Full-Time) M.Sc. in Information Systems Management (Part-Time) MBS in Electronic Commerce Module(s) MS805 Database Systems External Examiner(s) Dr. Danail Ivanov Internal Examiner(s) Dr. Tom Acton Dr. Michael Lang Instructions Answer all 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 Spare copy of diagram on last page of this examination paper MCQ None Statistical Tables None Graph Paper None Log Graph Paper None Other Material None No. of Pages 7 (including this cover sheet) Discipline Business Information Systems (ext. 5064)

ANSWER ALL QUESTIONS.

Candidates are strongly advised to attempt all parts of all questions. The “suggested times” are proportionate to marks available and for guidance purposes only. Question 1. (a) Explain, using examples, some common causes of spreadsheet data integrity errors. (5 marks) (Suggested time: 7 minutes) (b) Explain what is meant by a “recursive one-to-many relationship”, and show how such a relationship might be implemented in a relational database. Your answer should include a definition, an example, a diagram, and sample SQL code from the CREATE TABLE statement. (8 marks) (Suggested time: 12 minutes) (c) Explain what is meant by the concept of “referential integrity” in a relational database. ( 7 marks) (Suggested time: 10 minutes) (d) Briefly explain how ROLLBACK and COMMIT statements are used to ensure the integrity of transaction management in relational databases. ( 5 marks) (Suggested time: 7 minutes)

Question 3. Structured Query Language (SQL). 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 (l) which follow. Notes:

  • In the COMPETITION table, the combination of COMP_NAME and SEASON is unique (e.g. Champions League 2009/2010) but COMP_ID is the primary key for the sake of simplicity of related foreign key(s). Likewise, APPEARANCE_ID is chosen as the primary key in the APPEARANCE table instead of the unique combination of PLAYER_ID, MATCH_ID and CLUB_ID.
  • The purpose of the APPEARANCE table is to show which players line out for which clubs in which matches.
  • The primary keys are indicated in bold in the above schema i.e. COMPETITION.COMP_ID, STADIUM.STADIUM_ID, CLUB.CLUB_ID, MATCH.MATCH_ID, APPEARANCE.APPEARANCE_ID, and PLAYER.PLAYER_ID.
  • There is no primary key in the GOAL table. This is because TIME_OF_GOAL records only the minute of the goal, and a player could score two or more goals in the same appearance within the space of a minute, in which case the combination of fields would not be unique.
  • 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 if you choose to implement your solution in a different way that works. 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.

Students are strongly advised to attempt all parts of this question. For incomplete or incorrect attempts, a proportion of marks will be awarded where the logic and/or syntax is partly correct. a) Name the winner ( CLUB_NAME ) of the German Bundesliga ( COMP_NAME ) in the 2008/2009 season. (2 marks) b) List the club name, nickname, stadium name and stadium capacity of all clubs based in Portugal ( COUNTRY ). (2 marks) c) What is the club name, country, home ground stadium name, and year of establishment ( YR_EST ) of the club whose nickname is “The Magpies”. (3 marks) d) List the full names ( FNAME, LNAME ) and date of birth ( DOB ) of all players from Ireland ( NATIONALITY ) who have ever made an appearance for AC Milan ( CLUB_NAME ). No player should be listed more than once i.e. eliminate duplicates. (3 marks) e) List the competition name, date and match result (i.e. home team name, home team score, away team name, away team score) of all matches in which Glasgow Celtic played Real Madrid at home (i.e. the home team name is Glasgow Celtic), sorted in ascending order of date. (4 marks) f) How many away wins did Sligo Rovers ( CLUB_NAME ) achieve in the Irish Premier League ( COMP_NAME ) in the 2008/2009 season? An away win is defined as a match where the away team scored more goals than the home team i.e. AWAY_SCORE is greater than HOME_SCORE. (4 marks) g) In the English Premiership ( COMP_NAME ) in the 2006/2007 season, how many goals were scored in the 85 th minute ( TIME_OF_GOAL ) or later? (4 marks)

(TO BE PRINTED ON A DETACHABLE SEPARATE PAGE)