My code:
Group BY
GROUPING SETS
(
(wmsSponsorEntityName),
(wmsSponsorEntityPrimaryRegion),
(wmsProjectNameSWP) ,
()
)
I'm doing this because those three fields repeat and the other two:
w.[P2010]
w.wugCounty
differ for some wmsProjectNameSWP
wmsSponsorEntityName | wmsSponsorEntityPrimaryRegion | wmsProjectNameSWP | w.wugCounty | P2010
ABERNATHY | O | Local groundwater development | LUBBOCK | 808
ABERNATHY | O | Local groundwater development | HALE | 2297
But I receive an error of Incorrect syntax near 'SETS'.
Any guidance would be appreciated.