Professional Documents
Culture Documents
questions
1. a. Differentiate between a Database and a Database Management system giving two
examples in each case 5 marks
b. What are the advantages of Relational Database management System over flat file
systems? 15 marks
a. What is a data model? 5 marks
b. Describe E-R data model with annotated diagrams 15 marks.
2. Write short notes on the following: 5 marks @
a. Instances and Schemes
b. Data Independence
c. Physical data independence
d. Logical data independence
3. Giving examples explain the meaning of the following terms: 5 marks @
a. Data Definition Language (DDL)
b. Data Manipulation Language (DML)
c. Data Control Language (DCL)
d. Transaction Control Language (TCL)
4. a. What is the difference between Database Manager and Database Administrator
5 marks
b. Explain the roles of a Database Administrator? 15 marks
5. a. Explain the use of the following constraints: 3marks @
i. Primary key
ii. Foreign key
iii. Check
iv. NOT NULL
b. Explain the use of the following key words in SQL: 2 marks @
i. DISTINCT
ii. DESCRIBE
iii. IN
iv. BETWEEN
a. Write a query that would return the details of all employees who earn a salary
above the average salary
5 marks
b. Write a query that would return all employees who do not earn Commission. 3
marks
c. Write a query that would return only employee first _names and last_names
concatenated together with their salaries multiplied by 12 and the salary column
renamed “annual salary” 8 marks
d. Write a query that would create the structure of the table above and name it
“Employees” 4 marks