Information Systems Department: Imam Mohammad Ibn Saud Islamic University College of Computer and Information Sciences
Information Systems Department: Imam Mohammad Ibn Saud Islamic University College of Computer and Information Sciences
Student ID:
Section No.:
Instructions:
1. Answer All questions; there are Five questions in Two pages.
2. Write your name on each page of the exam paper.
3. Write your answers directly on the question sheets. Use the ends of the question pages for
rough work or if you need extra space for your answer.
4. If information appears to be missing from a question, make a reasonable assumption, state
your assumption, and proceed.
5. No questions will be answered by the invigilator(s) during the exam period.
1 1
2 1
3 1
4 1
5 1
Total 5
Question: Write the suitable SQL statement to answer the following questions based on the following tables:
1. Write the DDL statement for defining the three tables (Branch, Staff, and
Property).
3. By using Nesting Query, Retrieve Name and Salary of staff who works in Riyadh
5. List the name of staff, the branch they work in and the type of property they
manage. (Use join)