Lesson 6 of 22 · SQLite

Filtering with WHERE

Filter rows with SQL WHERE, comparison operators, IN, LIKE and BETWEEN.

The WHERE clause lets you specify conditions to filter rows.

Comparison Operators

OperatorMeaning
=Equal to
!= or <>Not equal to
>Greater than
<Less than
BETWEENBetween a range
LIKEPattern matching
INMatch any in a list

Your challenge

Find every crime report from Chicago or Boston.

Solve it in your browser

Free, no sign-up. The SQLite database runs in your browser; your answer is checked instantly, with hints if you need them. Plus a 2-question quiz.