Professional Documents
Culture Documents
Comp w1 Ans Key
Comp w1 Ans Key
Cambridge International
Academic Session 2022-23
Subject: Computer Science Topic: Database worksheet 1 Answer
Name: Class: IX Roll No. :
1. A database table called TestResults has been created to hold details of students’ test
results. Part of the table is shown below.
(a) The maximum mark obtainable on the test was 70. Write the query to select all the
students who scored below half marks in the test. The output should be displayed in
order of surname and firstname.
Answer:
FROM TestResults
1
(c) Show the output from this query.
FROM TestResults
ORDER BY Result;
Answer:
Answer: StudentID
(d) How many records and fields are there in the table ?
Answer : 9
Answer:
2
(c) Write the query to select all the students with more than 60 marks in History or
more then 60 marks in Geography in ascending order of StudentName.
Answer:
SELECT StudentName
FROM MARKS
ORDER BY StudentName;
Answer :
Diana Abuur
Paul Smith
(e) Write the query to select and show the student names only of all student with less
than 40 marks in both maths and English.
Answer:
SELECT StudentName
FROM MARKS