1Medium
0/6

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]

Structured query language (SQL) Questions

Practise AQA GCSE Computer Science Structured query language (SQL) with exam-style questions for GCSE Computer Science. 25 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

Next

Structured query language (SQL) Questions

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