select id, SGA, ZLN, GSI, CON
from (select origen, id from ExpedientesR_2016)
pivot (count(*) for origen in ('SGA' as SGA, 'ZLN' as ZLN, 'GSI' as GSI, 'CON' as CON)) as pv
only marks error near pivot.
'SGA', 'ZLN', 'GSI', 'CON' are the possibl...
asked by
19.09.2016 / 09:33