Skip to content

Course home

Structured query language (SQL)

Structured query language (SQL)

EasyMediumHard
1234567
Question 1

A deep-space research station tracks its pilot assignments to automated survey drones.

Using the relational database shown below, write an SQL query that lists all drone deployments for pilots who are currently holding Clearance Level 4.

Drone

DroneIDPropulsionType
NX101Ion-Drive
QP202Quad-Rotor
SL099Solar-Sail
SL100Solar-Sail
VT004Vertical-Takeoff
VT005Vertical-Takeoff
HY002Hydrogen-Cell

Pilot

PilotIDFirstNameLastNameClearanceLevel
ARD302CalebArdis2
BEN104TameraBennett4
KHA901TariqKhan4
LOP002MariaLopez3
SIN505HarpreetSingh4
CHE442ChenWei4
VAN112SarahVance1

Deployment

DeploymentIDPilotIDDroneIDDangerPay
D8001ARD302NX101150.00
D8002VAN112VT004120.50
D8003BEN104SL099180.00
D8004KHA901QP202120.50
D8005SIN505HY002210.00
D8006CHE442VT005120.50
D8007LOP002SL100180.00

The query must only return:

  • both physical names of the pilot (first and last name)
  • the ID of the deployed drone
  • the danger pay.

The final results must be sorted in ascending alphabetical order of the pilots' last names.

[6]
Markscheme

Structured query language (SQL) Questions

  1. GCSE
  2. /Computer Science
  3. /Structured query language (SQL)

25 exam-style questions on AQA GCSE Computer Science Structured query language (SQL). Each one has a worked solution and a mark scheme showing where the marks go.

Question bank