Null-safe compare
a IS DISTINCT FROM b treats NULL as an ordinary value: two NULLs are equal, NULL and true differ.
task
Customers whose opt-in differs from true, counting NULL as different. Return customer_id.
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
a IS DISTINCT FROM b treats NULL as an ordinary value: two NULLs are equal, NULL and true differ.
Customers whose opt-in differs from true, counting NULL as different. Return customer_id.