Home › coding › sql › sql where

Sql Where — Free Sql Tutorial

Learn Sql Where in Sql with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

✓ 100% Free ✓ No Login Needed ✓ NCERT / CBSE Aligned ✓ Download as PDF

TL;DR: Learn Sql Where in Sql with a free, beginner-friendly tutorial, examples and practice for Indian students on Syllab.in.

Written & reviewed by the Syllab.in Academic Team (CBSE/NCERT subject experts) · Updated Jul 14, 2026

🤖 Stuck on any question? Ask Syllab's free AI Tutor for a step-by-step explanation — instant, unlimited, no login.

Sql Where in Sql

The WHERE clause filters rows that match a condition. Only matching rows are returned. Without WHERE, SELECT returns ALL rows.

Comparison operators: = (equal), != or <> (not equal), > (greater than), < (less than), >= (greater or equal), <= (less or equal). Combine conditions with AND, OR, NOT.

Special operators: IN (matches any value in a list), BETWEEN x AND y (range), LIKE '%pattern%' (text search, % = any characters, _ = one character), IS NULL / IS NOT NULL.

Sql Where — Syntax

SELECT * FROM table
WHERE condition;

WHERE marks > 80
WHERE marks BETWEEN 70 AND 90
WHERE city IN ('Delhi', 'Mumbai')
WHERE name LIKE 'A%'   -- starts with A
WHERE name LIKE '%ar%' -- contains 'ar'

Learn Sql Where step by step with Syllab's free interactive Sql tutorial — runnable code examples, practice exercises and instant AI feedback, all free with no signup. Explore the full Sql course →

Explore:

  • Syllabus
  • Practice
  • Mock Tests
  • NCERT Solutions
  • Coding
  • GK Quiz
  • Career Predictor
  • AI Tutor
  • Live Quiz
  • Doubt Solver
  • Microlearning
  • Free Alternatives
  • Kids Zone
  • Study Room
  • Calculators
  • Worksheets

Syllab.in — Free learning for Indian students, Class 1–12