SELECT with WHERE

Filter rows with a condition

Query

SQL

SELECT name, email FROM users WHERE age > 18;

What each clause does

SELECT name, email chooses specific columns. WHERE age > 18 filters rows to only those matching the condition.

Related tools

Other SQL examples