SQL Foundations · Lesson 3 of 8 · 12 min
Filtering and sorting
Keep only the rows you need with WHERE, and put them in order with ORDER BY.
Most questions are about some of the rows, not all of them. WHERE keeps only the rows where a condition is true.
Text goes in single quotes. Numbers do not. You can compare with =, <> (not equal), <, >, <= and >=.