i need to get csv from a column but the minimum value from the rest of the columns (or any value because they are same for a group). As an example;
I have the following table:
COL1 COL2 COL3 COL4
------------------------------------------
ABC 10 35 GROUP1
AQW 10 35 GROUP1
VBN 10 35 GROUP1
HJK 10 35 GROUP1
DFV 30 25 GROUP2
HYT 30 25 GROUP2
DET 30 25 GROUP2
And I want the following result:
COL1 COL2 COL3 COL4
--------------------------------------------------------
ABC,AQW,VBN,HJK 10 35 GROUP1
DFV,HYT,DET 30 25 GROUP2
I looked at similar scenarios and the solution of using a variable-case-concatenation (Concatenating Column Values into a Comma-Separated List) would not work as I will be having multiple groups. I can't think of a way doing that. Can you suggest a way?