Skip to content

Course home

Structured query language (SQL)

Structured query language (SQL)

EasyMediumHard
1234567891011
Question 1

An astrophysicist wants to retrieve a list of all exoplanets from the database that were discovered using the 'Transit' method.

Exoplanet

PlanetIDNameMethodYearDiscovered
EP-402Kepler-186fTransit2014
EP-403Proxima bRadial Velocity2016
EP-404OsirisTransit1999

Observation

ObsIDPlanetIDObservatoryID
9001EP-40277
9002EP-40378

Observatory

ObservatoryIDFacilityNameLocation
77Kepler Space TelescopeEarth Orbit
78La Silla ObservatoryChile

The following SQL query is run to produce the list:

A Name, Method, YearDiscovered FROM Exoplanet WHERE B

Some parts of the SQL query have been replaced by labels A and B.

State the SQL statements or clauses that should have been written in place of the labels A and B.

[2]
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