Example table:
ID | value A | value B
----------------------
1 | abc | 3
1 | def | 5
1 | ghi | 1
2 | cba | 9
2 | fed | 4
I want the rows from within any 'ID-group' that has it's minimum within that group in value B.
Wanted result:
ID | value A | value B
----------------------
1 | ghi | 1
2 | fed | 4
Anything I tried with group by always fails because of that 'value B'-column and its varying values because I do not want to / cannot aggregate them.