Skip to content
IGCSE·Tuition
ICT · Practice

Database queries and reports: original mixed practice with explanations

Each skill makes sense alone, and the difficulty appears when one task needs three of them together.

These ten questions mix the skills from database queries and reports: multiple criteria, secondary sort keys, calculated fields, grouping and checking. All questions use one invented table of ten records, so you can work every answer out by hand. The names and numbers are made up.

Work each answer on paper first, then open the explanation. The questions run from easier to harder.

IDNameYearClubFee (RM)Sessions (of 12)
1Aiman10Chess308
2Bella11Drama4512
3Chen10Drama459
4Dewi9Chess3011
5Evan11Robotics607
6Farah10Robotics6012
7Gopal9Drama456
8Hui11Chess3010
9Imran10Chess3012
10Jia9Robotics605

Questions

1. Which records match Club = “Drama” AND Fee > 40?

Show answer

All three Drama members pay RM45, which is above 40. Bella, Chen, Gopal, three records.

2. Which records match Year = 9 OR Sessions = 12? How many?

Show answer

Year 9: Dewi, Gopal, Jia. Sessions 12: Bella, Farah, Imran. No member is in both lists. Six records.

3. Which records match (Club = “Chess” OR Club = “Robotics”) AND Year = 10?

Show answer

Chess in Year 10: Aiman, Imran. Robotics in Year 10: Farah. Aiman, Imran, Farah, three records.

4. Which records have Sessions < 9 AND Fee < 50?

Show answer

Sessions below 9: Aiman (8), Evan (7), Gopal (6), Jia (5). Of these, Fee below 50 keeps Aiman (30) and Gopal (45). Evan and Jia pay 60. Aiman and Gopal.

5. Sort by Year ascending, then Sessions descending, then Name A to Z. Give the full order.

Show answer

Year 9: Dewi (11), Gopal (6), Jia (5). Year 10: Farah (12) and Imran (12) tie, so Name decides: Farah, Imran. Then Chen (9), Aiman (8). Year 11: Bella (12), Hui (10), Evan (7). Dewi, Gopal, Jia, Farah, Imran, Chen, Aiman, Bella, Hui, Evan.

6. A calculated field is Fee / Sessions. What is the value for Aiman?

Show answer

30 / 8 = 3.75, so RM3.75 per session.

7. Attendance = Sessions / 12 * 100. Give the value for Hui to one decimal place, and say what goes wrong if the field is also formatted as Percent.

Show answer

10 / 12 * 100 = 83.333… so 83.3. With the Percent format as well, the value is multiplied by 100 again and shows 8333.3%. Use only one of the two methods.

8. Group by Club with the count and total sessions for each club, and a grand total of sessions.

Show answer

Chess: 8 + 11 + 10 + 12 = 41, 4 members. Drama: 12 + 9 + 6 = 27, 3 members. Robotics: 12 + 7 + 5 = 24, 3 members. Grand total 41 + 27 + 24 = 92, 10 members.

9. A grouped report shows Robotics with a fee subtotal of RM120. What is wrong, and how do you find the cause?

Show answer

The correct subtotal is 3 * 60 = 180. The report is 60 short, so one Robotics member is missing. Count the Robotics rows (expect 3), find the absent name, then look for a leftover criterion or a hidden detail row. For example, Sessions > 5 would remove Jia.

10. The overall average sessions is shown as 9.2 and the Chess average as 10.5. Check both.

Show answer

Overall: 92 / 10 = 9.2, so that is correct. Chess: 41 / 4 = 10.25, so 10.5 is wrong. The correct value is 10.25, so check the formula and the records included.

If you got these wrong

Record your slips in the mistake log and retest queue, test queries in the read-only SQL practice lab, and check evidence with the ICT practical task and evidence checker.

A teacher can go through the questions you missed and the settings you chose, in online one-to-one ICT tuition.

Sources

  1. Cambridge IGCSE Information and Communication Technology 0417 syllabus page

Updated:

Your next step

If a type of slip keeps returning, a one-to-one teacher can sit through a few tasks with you and pin down whether it is the logic, the settings or the checking.

Paid one-hour trial at your assigned teacher’s confirmed rate, starting from RM80.

Tuition is arranged with a parent or guardian. Send them this page on WhatsApp and they can enquire for you.

Parents: enquire here

  • 9,000+ students helped through our service
  • 9+ years helping IGCSE students