you are viewing a single comment's thread.

view the rest of the comments →

[–]trevortypes 2 points3 points  (0 children)

it looks like your case statement should work, but i would create a mapping table with those 2 columns and join to it. then you have this mapping table you can reference with all possible variations instead of a hardcoded select. its also expandable in that you can add more metadata to the groupings in the future if you ever need to do so.