0% found this document useful (0 votes)
78 views2 pages

Database Systems 2022

Database systems revision questions for the degree of mathematics and computer science

Uploaded by

jaraemmanuel562
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
78 views2 pages

Database Systems 2022

Database systems revision questions for the degree of mathematics and computer science

Uploaded by

jaraemmanuel562
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 2
WI1-2-60-1-6 JOMO KENYATTA UNIVERSITY OF AGRICULTURE AND TECHNOLOGY UNIVERSITY EXAMINATIONS 2022/2023 ‘YEAR 2 SEMESTER 1 EXAMINATIONS FOR THE DEGREE OF BACHELOR OF MATHS AND COMPUTER SCIENCE ICS 2206: DATABASE SYSTEMS DATE: DECEMBER 2022 TIME: 2 HOURS INSTRUCTIONS: 1) __ Answer question ONE (Section A) and any other two questions in section B 2) All questions except question one carry equal marks QUESTION ONE (30 MARKS) a) State and explain any two functions of Database Systems (4 marks) b) Discuss any two information systems (4 marks) ©) Explain the following terms. i) Distributed Transaction (3 marks) ii) 1 Normal Form (3 marks) 4) As the Database Administrator of COPAS, you have been asked to create a database that would store information of all the employees, the department were they work, their dependants for the purpose of health insurance amongst other information. Give the SQL statements that you would use to create the database and the three tables. Make sure to enforce the relevant constraints. (10 marks) ©) Discus the following terms: (3 marks) p ii) Entity relationship diagram 3 marks) QUESTION TWO (20 MARKS) a) Write a sql statement that you would use to link two database system. (6 marks) b) Discuss the concept of relational database systems. (4 marks) c) What is a database management system and give two functions. (6 marks) 4) Explain the difference between primary key and foreign key. (4 marks) QUESTION THREE (20 MARKS) a) Give the two parts of SQL and explain the functions of each component. (4 marks) me DROP TOE, ALTE, CoE Leo > obfet! an nao > eat Betrua ery Garr» eevee b) Discuss Data normalization concept and explain the rules and benefits. (6 marks) sere gW4 ©) State and explain any three Database Managément systems functions. (6 marks) 4) Give SQL statements that would create and starts up a database system. (4 marks) QUESTION FOUR (20 MARKS) ) Anew employee has been hired by your company, by the name John Doe, date of birth 5/3/1972, employee id number 2222, salary 200000.00 and assigned to Finance department. As the database administrator of your company, you have updated the table with salary as 20,00 instead of 200,000 write SQL statements that would update the table with the correct salary. (5 marks) b) Discuss data redundancy in the database explaining how to overcome it. (5 marks) ©) State and explain the four acid properties of a transaction. (6 marks) Give a SQL statement that creates a user account to be changed on first log in. (4 marks)

You might also like