codegurukool.com · Free coding tutorials & online compiler

Home › SQL Tutorial › SQL WHERE

SQL WHERE

Filter rows with a condition.

WHERE keeps only the rows that match. Text values go in single quotes. Operators: =, <>, >, <, >=, <=.

Example code

SELECT name, city FROM Customers
WHERE country = 'UK';

Run this code in the online editor

← SQL SELECT and DISTINCTSQL ORDER BY and LIMIT →