By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
count(nullif(status_to = 'Draft',0)) | SUM(status_to = 'Draft') |
---|---|
0 | null |
count(nullif(status_to = 'Draft',0)) | SUM(status_to = 'Draft') |
---|---|
0 | null |
count(nullif(status_to = 'Draft',0)) | SUM(status_to = 'Draft') |
---|---|
0 | 0 |