Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Spreadsheet is a software development paradigm. Parent comment
You can write
select a from b where 1
select sum(a=1), sum(a=2) from b
There are no comments on this comment yet.
You can write
in MySQL and Oracle, because those db's treat true and false as 1 and 0, you can write others like microsoft sql and postgresql enforce a separate boolean type which means you have to put the ternary operator into the sum.