DatabaseAdministration Exam
DatabaseAdministration Exam
DatabaseAdministration Exam
INSTRUCTIONS
1. The Paper is made up of FIVE (5) Questions, question ONE is compulsory plus any other
TWO questions.
2. Credit is given for legibility, clarity of expressions and use of relevant illustrations.
3. Clearly write your registration number on each answer sheet used.
QUESTION ONE:
a) List and explain any 5 types of Oracle database users. (10 marks)
b) Explain any 5 features of an Oracle Server. (10 marks)
c) Differentiate between the following:
Oracle Database Physical Structure and Logical Structure.
Oracle Instance user processes and Oracle processes.
Oracle Server and an Oracle Database. (6 marks)
With the use of illustrations explain 5 Oracle Architectural Components. (20 marks)
QUESTION THREE
a) Using the table above, write SQL statements that achieve the following:
Return employee details in the executive department
Return distinct employee location_ids
Display all details in the table ordered by location_Id in ascending order
Return the department names of departments with location_id 1700 (8 marks)
QUESTION FOUR
Employees
Departments
QUESTION FIVE
a) Write sql queries that will do the following:
Count the number of employees in the table
Get the average salary of different job groups grouped by JOB_ID.(only return
two fields i.e JOB_ID and SALARY
Return a table displaying maximum salary, minimum salary, average salary and
sum of all salaries. (6 marks)
b) Write SQL statements that will create the table above (8 marks)
c) Write DML statements that will perform the following:
Add a new record in the table above
Delete the record with employee_id 201
Update the salary of the record with employee_id 205 from 12000 to 15000
(6 marks)