MY Table is
id position some data
---|--------|------------|
1 | 1 | data |
1 | 2 | data |
2 | 1 | data |
2 | 2 | data |
5 | 1 | data |
5 | 2 | data |
5 | 3 | data |
how do i format it into the following. so that it shows only the unique ID with the highest position as following. The data is a longitude and latitude, so it should only return the highest position long and lat.
id position some data
---|--------|------------|
1 | 2 | data |
2 | 2 | data |
5 | 3 | data |