Skip to content

Course home

Structured query language (SQL)

Structured query language (SQL)

EasyMediumHard
1234567891011
Question 3

A list of all the books in the 'Science Fiction' genre is needed from the database.

Book

BookIDTitleGenrePublishedYear
501DuneScience Fiction1965
502NeuromancerScience Fiction1984
503The HobbitFantasy1937

Loan

LoanIDBookIDBorrowerID
700150188
700250389

Borrower

BorrowerIDFirstNameLastName
88ArthurDent
89BilboBaggins

The following SQL query is run to produce the list:

A BookID, Title, Genre FROM Book WHERE B

Some parts of the SQL inquiry 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