Dbms Mid Answer
Dbms Mid Answer
Database management
Course systems
Time allowed: 1 hour
Code: CSC125 Marks: /20
Level: 1 Date of Exam: 28/7/2024
Question # 2: for the blow schema answer the following questions (mark/question)
Page 1 of 3
3. Write DDL to create DEPARTEMENT Relation (3 mark)
Page 2 of 3
5. Retrieve the name and address of all employees who work for the
‘Research’ department (2 mark)
6. Write SQL statement to retrieve the names of all employees in department 5 who work more than
10 hours per week on the ProductX project. (2 mark)
Select Fname
From Employee , deparment ,project, works_on
Where dno= dnumber
and dno=5
and pno=pnumber
and pname= “ProductX”
and Ssn=Essn and hour>10
End of Exam
Page 3 of 3