I am developing a SQL query that currently works for one group/mode combination. But I want this query to work for all groups and modes. And include each combination one time only. But in source data there are many other columns, so there is more than one record per combination.
So my source table structure is:
group mode p-val
----- ---- ------
A B 4.567
C D 3.694
How can I setup a loop to loop through each group/mode combination? And I'd rather not use cursors!