Pivot (cross)

<< Click to Display Table of Contents >>

Navigation:  SQL features >

Pivot (cross)

Examples:

 

select b, a from sample.sheet1 where _row > 0
pivot(count(*), sum(e) for a in (select distinct a from sample.sheet1 where _row>0))
 
select b, a from sample.sheet1 where _row > 0
pivot(count(*) for a in ('Government', 'Midmarket'))