SQL Playground
TutorialsPlayground
SQL FormatterSQL MinifierSyntax ValidatorJSON to SQLCSV to SQLSQL to JSONER Diagram Generator
Daily ChallengeInterviewsCheat SheetBlog

© 2026 SQL Playground. Built for developers.

PrivacyTermsAboutRSS Feed
SQL Playground
TutorialsPlayground
SQL FormatterSQL MinifierSyntax ValidatorJSON to SQLCSV to SQLSQL to JSONER Diagram Generator
Daily ChallengeInterviewsCheat SheetBlog
Initializing...
Chapter 2: Filtering & Sorting
2-1
Your Progress

AND & OR Operators

You can combine multiple conditions in a WHERE clause using AND and OR.

  • AND: Both conditions must be true.
  • OR: At least one condition must be true.
SELECT * FROM users WHERE role = 'user' AND name = 'Bob';

Task: Find all users who are either an 'admin' OR have the name 'Charlie'.

Loading...
Run a query to see results