SQL · Reading data

comparison operators

Compare values. Use IS NULL and IS NOT NULL for null checks, never = NULL.

Syntax
= <> < > <= >=

Example

Open in the lab

More in this group

and / or / not between case expression coalesce column alias distinct distinct on fetch first

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course