Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- <list of fields>,
- GROUPING_ID((case
- when ?='true'
- then t1.[xyz]
- else null
- end)) AS [_groupId]
- <snip>
- GROUP BY(CASE
- when ?='true'
- then t1.[xyz]
- else null
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement