Sort NULLs
In ascending order NULLs sort last, in descending order first. NULLS FIRST and NULLS LAST override that.
task
Customers ordered by opt-in (true first), NULL last, then by id. 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.
In ascending order NULLs sort last, in descending order first. NULLS FIRST and NULLS LAST override that.
Customers ordered by opt-in (true first), NULL last, then by id. Return customer_id.