Markus Winand personal blog

The SQL filter clause: selective aggregates

The FILTER clause extends aggregate functions (SUM, AVG, COUNT, etc.) with an additional WHERE clause. Databases not supporting FILTER can use CASE within the aggregate function instead.
Points
138
HN comments
47
Submissions
1
Cited by
3 commenters

Databases & DataSoftware Engineering2016

On Hacker News

SubmittedTitle on HNPointsComments
May 30, 2016The SQL filter clause: selective aggregates by MarkusWinand13847

Cited in comments

Linked from 3 Hacker News comments by 3 different people, from Apr 2017 to Feb 2023.

Most recent:

Search every comment that links here →

More from Markus Winand

All 8 posts →

Related posts from the same era