MicrolearnENPTES

Filtering rows with WHERE

Lesson 3 of 24 · SQL.Micro

WHERE keeps only the rows that meet a condition. Text values go between single quotes.

Comparison operators: =, <>, <, <=, >, >=.

WHERE comes after FROM and before ORDER BY.

Check yourself

Which condition finds products cheaper than 30?

Show the name and price of the products in the category 'Books'.

Do it in the browser: a real SQL tool, a short mission and instant feedback. No install.

Start this lesson — free
← Choosing columnsSorting and limiting →

All lessons · SQL.Micro