Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Dit1301 Database Systems Eve Main

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

UNIVERSITY EXAMINATION 2018/2019

SCHOOL OF COMPUTING AND INFORMATICS


DEPARTMENT OF INFORMATION TECHNOLOGY

DIT/DBIT/CIT
EVENING

UNIT CODE: DIT1301 UNIT TITLE: DATABASE SYSTEMS

DATE: NOVEMBER, 2018 MAIN EXAM TIME: 2 HOURS

INSTRUCTIONS: SECTION A IS COMPULSORY.ANSWER ANY OTHER TWO


QUESTIONS IN SECTION B

SECTION A
QUESTION ONE(30 MARKS)
a) Distinguish between the following terms as used in database systems.
(10 Marks)
i) Logical and physical data independence.
ii) weak entity set and strong entity
iii) Primary key and foreign key
iv) Cardinality and Composite attribute
v) Generalization and specialization.

b) State and briefly explain the three levels of ANSI-SPARC three-level


architecture (6 Marks)

c) State and explain the 5 components of database system environment and


discuss how they relate to each other. (5 Marks)

d) Define the term normalization and explain the three normal forms.
(9 Marks)

Library Copy Page 1


SECTION B
QUESTION TWO (20 Marks)
2 a) Consider the table structure below.
STUDNO LNAME FNAME INITIAL DOB UNIT_CODE
101 Mwangi John N 11/8/80 2100
102 Kimaiyo Peter M 12/12/8 2200
4
103 Chebet Martha K 2/4/83 2305
104 Oduor Louis M 11/06/8 2200
0
105 Njuguna Frank G 15/9/85 2100

Using SQL,
i. Create the structure of table STUDENT and set a suitable field as the primary
key. (5 Marks)

ii. Having created the table structure in (i) above, enter the first two records
into the table. (5 Marks)

iii. Return the names of students taking unit code 9945 (3 Marks)

iv. Remove the table STUDENT from the database (2 Marks)

v. Order the table by unit code in ascending (5 Marks)

QUESTION THREE (20 Marks)


a) Using relevant examples describe the purposes of the DBMS languages
(10 Marks)

b) Explain five roles of a data base administrator. (10 Marks)

QUESTION FOUR (20 marks)


You are required to design a database tables to contain employees. Think of
possible tables, fields and their field’s data types and field properties for each
table above. (20 Marks)

Library Copy Page 2


QUESTION FIVE (20 MARKS)
a) With the aid of well labeled diagrams describe the three types of
relationships. (10 Marks)

b) Differentiate between an entity and attribute (2 Marks)

c) Describe any Four (4) users of database (8 Marks)

Library Copy Page 3

You might also like