Boss: three-valued count
A boolean column has three states. count(*) FILTER (WHERE ...) counts one state per column.
task
One row: customers with opt-in true, false, and unknown (three columns).
Run a query to see rows here.
Run EXPLAIN on the statement under the cursor: Plan tab, button Explain.
No tables yet.
A boolean column has three states. count(*) FILTER (WHERE ...) counts one state per column.
One row: customers with opt-in true, false, and unknown (three columns).