How to count boolean values in PostgreSQL? – dba.stackexchange.com

How to count, how may true and false for the field public in postgresql user table i have tried this query select sum(case when false then 1 else 0 end) as false, sum(case when true then 1 else 0 ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "How to count boolean values in PostgreSQL? – dba.stackexchange.com"