Skip to content

Course home

Additional programming techniques

Additional programming techniques

EasyMedium
123
Question 2

A marine biology research station has a database that records telemetry data each time a marine animal's satellite tag transmits. The record format is given in the table below:

FieldnameDescription
LogDateThe date the telemetry reading was taken
TagIDThe unique ID of the transmitter tag
SpeciesThe species category – Shark, Whale, or Turtle
DepthThe depth in meters recorded by the tag

The telemetry log is stored in a database table called tag_telemetry. The current contents of tag_telemetry are shown:

LogDateTagIDSpeciesDepth
15/04/2024SK_102Shark85
15/04/2024WL_504Whale240
16/04/2024TT_081Turtle12
16/04/2024SK_102Shark115
17/04/2024WL_504Whale310
17/04/2024SK_201Shark195
18/04/2024TT_081Turtle45

Write an SQL statement to display the tag IDs of the shark species that have recorded a depth of more than 100 meters.

[3]
Markscheme

Additional programming techniques Questions

  1. GCSE
  2. /Computer Science
  3. /Additional programming techniques

5 exam-style questions on OCR GCSE Computer Science Additional programming techniques. Each one has a worked solution and a mark scheme showing where the marks go.

Question bank