I'm trying to do the opposite of this question
I need to get the minimum value out of a grouped record, so, taking the same information from the linked question, from
ID | Person | Group | Age
---
1 | Bob | 1 | 32
2 | Jill | 1 | 34
3 | Shawn | 1 | 42
4 | Jake | 2 | 29
5 | Tom | 2 | 28
6 | Paul | 2 | 36
7 | Laura | 2 | 39
8 | Julie | 2 | 28
Desired result set:
1 | Bob | 1 | 32
5 | Tom | 2 | 28
I tried by joining the table on herself with opposite condition (< instead of >) but it's not working.
Duplicates are not allowed, if two persons have the same age, the one with the lowest ID has to be returned.