SQL command: WHERE - GCSE Computer Science Definition

Reviewed by: Robert Hampton

Published

The SQL command "WHERE" is used in databases to filter records and select only those that meet certain conditions. Imagine you have a big list of data, like a library with thousands of books, but you only want to see the books written by a certain author. By using the "WHERE" command, you can tell the computer to show only the records that match this specific rule. For example, if you want to find all students who scored more than 70 in their exams from a database, you would use the "WHERE" command to narrow down the list to just those students. It's like using a filter to see only the information you’re interested in from a large set of data.

Examiner-written GCSE Computer Science revision resources that improve your grades 2x

  • Written by expert teachers and examiners
  • Aligned to exam specifications
  • Everything you need to know, and nothing you don’t
GCSE Computer Science revision resources

Share this article

Robert Hampton

Reviewer: Robert Hampton

Expertise: Computer Science Content Creator

Rob has over 16 years' experience teaching Computer Science and ICT at KS3 & GCSE levels. Rob has demonstrated strong leadership as Head of Department since 2012 and previously supported teacher development as a Specialist Leader of Education, empowering departments to excel in Computer Science. Beyond his tech expertise, Robert embraces the virtual world as an avid gamer, conquering digital battlefields when he's not coding.

The examiner written revision resources that improve your grades 2x.

Join now