Database Management System (1)
Database Management System (1)
YEAR 2 SEMESTER 2
DATE: 6TH/DEC/2024 TIME: 2:00PM – 5:00 PM
INSTRUCTIONS:
1. Attempt All in section A and any Three Questions in section B
2. All Questions In Section B Carry Equal Marks
3. Time allowed: 3 HRS
SECTION A
Attempt all the questions in this section
Question 1
In that database environment there are many players from creation to usage.
a) Explain the roles in the database environment (10 Marks)
b) Write the oracle syntax for an inner join (5 marks)
c) What are the uses of (@2 marks)
i. Data definition Language (DDL)
ii. Data Manipulation Language (DML)
d) What is a database? (1 mark)
Question 2
a) You are required to design a database for your company that has employed you as the
database administrator. Explain the different models that you will apply to design the
database (10 marks)
b) Write the sql syntax for an inner join (5 marks)
c) Explain 5 Characteristics of good information (5 marks)
SECTION B
1
Attempt any three Questions
Question 3
Study the tables given below:
Branch
branch No Street City postcode
B005 22 Deer Rd London SW1 4EH
B007 16 Argyll St Aberdeen AB2 3SU
B003 163 Main St Glasgow G11 0QX
B004 32 Manse Rd Bristol BS99 1NZ
B002 56 Clover Dr London NW10 6EU
Staff
2
b) What is the Limitations of File-based Approach in relation to databases? (5 Marks)
i) If one needs to add a column called Salary to the table and remove the Date_of_Birth
column from the table, Supply the SQL codes for these is operations. (4 Marks)
ii) Write SQL code to list the staff who have worked for at least of two years. (2 Marks)
3
iii) Write SQL commands to add two rows to the original version of the table above with
your own data. (2
Marks)
Question 6
a) What is the manual filling system? Give 4 advantages (5 marks)
b) The relational database model has been our major point of study. Clearly explain
what these the following terms mean in regards to the relational database model.
(5
marks)
-Relation
-Attribute
-Tuple
-Cell
-Domain
-Primary key
4
StaffNo FName Surname Date_of_Birth Years_Worked a)
Wha
1 Duke Stanley 26-Nov-1980 3
2 Richard Williams 13-Dec-1983 2
3 Andrew Brainhard 02-Feb-1979 1
4 Ronald Dickson 06-Feb-1979 3
5 Charlotte Bronte 12-Jun-1982 1
6 Christabel Maryson 14-Jul-1981 3
7 Rosette Williams 20-Aug-1981 3
8 Clarissa Gravestone 11-Aug-1980 2
9 Michael Williams 23-Jan-1979 3
Branch
Property Forrent
5
Write the relational algebra for the following statements given the relations below:
i) salary > 10000 (Staff) (skram3)
ii) PfName, lName, salary (Staff) (skram3)
iii) List all cities where there is either a branch office or a property for rent. (3 marks)
iv) List all cities where there is a branch office but no properties for rent. (3 marks)
End