Logical & Comparison Operators
Logical Operators
AND
SELECT * FROM students
WHERE major = 'Computer Science'
AND age = 20;OR
SELECT * FROM students
WHERE major = 'Mathematics'
OR major = 'Physics';NOT
SELECT * FROM students
WHERE NOT major = 'Chemistry';LIKE

NOT LIKE

Comparison Operators
Equal (=)
Not Equal (<>)
Greater Than (>), Less Than (<)
Greater Than or Equal To (>=), Less Than or Equal To (<=)

Last updated