28m ago
Hi everyone,
I have orders with a missing shipped_at value, but this query returns no rows:
SELECT *FROM ordersWHERE shipped_at = NULL;
What is the correct way to find orders that have no shipping timestamp?
24m ago - last edited 23m ago
Use IS NULL. Comparing a value to NULL with = produces an unknown result, and WHERE only keeps rows where the condition is true.
SELECT *FROM ordersWHERE shipped_at IS NULL;
View solution in original post
never-displayed