Rollup/Cube

<< Click to Display Table of Contents >>

Navigation:  SQL features >

Rollup/Cube

Example:

 

select a, b, count(*), grouping(a) 

from sample.sheet1 

group by rollup(a, b) 

order by 1,2 nulls last