Mastering PostgreSQL 9.6
上QQ阅读APP看书,第一时间看更新

Introducing grouping sets

Every advanced user of SQL should be familiar with GROUP BY and HAVING clauses. But are you also aware of CUBE, ROLLUP, and GROUPING SETS? If not, this chapter might be worth reading for you.