Hello all --
How do I group by the result of a case statement???
ex)
SELECT typeRRS = CASE WHEN demo.typeRRS = 1 OR demo.typeRRS = 2 THEN 1 ELSE 3 END
FROM tableName
GROUP BY typeRRS
This statement groups the result set by demo.typeRRS, not the resulting 1 or 3 that comes out of the statement...
Thanks!
Paul Prewett
How do I group by the result of a case statement???
ex)
SELECT typeRRS = CASE WHEN demo.typeRRS = 1 OR demo.typeRRS = 2 THEN 1 ELSE 3 END
FROM tableName
GROUP BY typeRRS
This statement groups the result set by demo.typeRRS, not the resulting 1 or 3 that comes out of the statement...
Thanks!
Paul Prewett

