Comment Comment by coderzach yeah, this is the right answer. Are there any examples where this isn't what you want? I guess GROUPING SETS and ROLLUP, but those could be special. parent coderzach 4 years ago