

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An exam paper for a course on database design and development. It covers a range of topics related to database systems, including database design, sql statements, triggers, data models, database management systems, and database development lifecycle. The exam assesses the students' understanding of these concepts through a series of questions that require them to identify primary and foreign keys, write sql statements, design an er diagram, explain database properties and functions, describe database architectures, and discuss the advantages of database approaches over file systems. The exam is designed to test the students' knowledge and application of database principles and practices, making it a valuable resource for students studying database-related subjects at the university level.
Typology: Exercises
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Computing and Information Systems
Assessment Examination 22 March 2010 Duration: 2 hrs. Instructions to candidates: Candidates must attempt ALL questions. All questions carry equal marks Additional Materials Plagiarism is an offense Candidates attempting to gain an unfair advantage or colluding in any way whatsoever are liable to be disqualified Do NOT open the question paper until you are told to do so This question paper consists of three (3) printed pages including this page
Question ONE Given the following logical tables for a voting database system: Candidate(candidate_number, candidate_name, constituency_name, party_name) Voter(omang_id, name, gender, age) Vote_casting(omang_id, candidate_number) a) Identify the primary and foreign keys for the tables [3] b) Write SQL statements to do the following. i. Create the table candidate [3] ii. To create the table vote casting [4] iii. Give a list of female candidates [2] iv. To give a total count of people who voted [2] c) If a party is allowed to field only one candidate per constituency, draft a trigger to enforce that requirement. [5] d) A voter is allowed to vote only once, draft an SQL statement to effect the constraint. [3] e) Individuals who have reached a maturity age level are the only ones allowed to vote. Draft a statement to effect the requirement if the minimum legal age is 16 years. [3] Question TWO a. Describe the layers of an ICT system. [8] b. Analyse the case below and answer the questions which follow. A local authority wishes to keep a database of all its schools and the school children that are attending each school. The system should also be able to record teachers available to be employed at a school and be able to show which teachers teach which children. Each school has one head teacher whose responsibility it is to manage their individual school. i. Identify the entities participating in the situation above. [4] ii. Draw an ER diagram to model the situation above. [4] c. Give any three examples of data models you know [3]