WHERE Clause Basics
The WHERE clause filters rows based on conditions. Instead of getting all data, you get only the rows that match your criteria.
Basic WHERE Syntax
SELECT columns FROM table WHERE condition;
The condition compares a column value to something you specify.
Exercises
Loading exercise...
Loading exercise...
Loading exercise...
Important Notes
- Text values must be in single quotes:
WHERE city = 'Boston' - Numbers don't need quotes:
WHERE age = 25 - Comparison is exact:
'new york'won't match'New York'
Loading exercise...
Free Practice
Loading SQL editor...
Try these queries:
- Find users from different cities
- Find users of a specific age
- Find a user by their exact name
التالي · الدرس 6 من 27
Comparison Operators
قراءة 1 دقيقة
أنهيت 5 من 27 درسًا

اسأل Byte عن هذا الدرس
محادثة خاصة حول هذا الدرس. قرأ Byte الدرس كاملًا، ويجيب خلال ثوانٍ، ويُظهر القسم الذي تأتي منه كل إجابة. يمكنك السؤال بأي لغة.
الأسئلة والأجوبة
أسئلة عامة حول هذا الدرس. يجيب AI Tutor فورًا بلغتك، ويراجع فريق FreeAcademy الإجابات، ويمكن لكل المتعلمين قراءتها.

