Computer Science Level 6-Assessment 2
Computer Science Level 6-Assessment 2
WRITTEN ASSESSMENT
2 HOUR 30MINS
INSTRUCTIONS TO CANDIDATE:
Answer ALL questions in the sections in the answer booklet provided.
Marks for each question are indicated in brackets.
Do not write on this question paper.
Answer the questions in English.
Page 1 of 4
©2024 TVET CDACC
Page 2 of 4
©2024 TVET CDACC
1) From the following tables write a SQL query to find the salesperson and customer
who reside in the same city. Return Salesman, cust_name and city. (5
Marks)
2) From the following tables write a SQL query to find those orders where the order
amount exists between 500 and 2000. Return ord_no, purch_amt, cust_name, city.
(5 Marks)
3) From the following tables write a SQL query to find the salesperson(s) and the
(5 Marks)
4) From the following tables write a SQL query to find salespeople who received
commissions of more than 12 percent from the company. Return Customer Name,
(5 Marks)
5) From the following tables write a SQL query to find the details of an order. Return
Marks)
6) From the following tables write a SQL query to find the details of an order. Return
Marks)
Page 3 of 4
©2024 TVET CDACC
7) Write a SQL query to display the customer name, purchase amount, and salesman of all
Marks)
8) From the following tables write a SQL query to display the customer name, customer city,
Page 4 of 4