Hi,
I have a table in SQL like so
| UId | Class |
| 1 | Apple |
| 2 | Apple |
| 3 | Apple |
| 3a | Apple |
| 4 | Orange |
| 4a | Orange |
| 4b | Orange |
| 5 | Orange |
I am trying to get the min and max of the UId column for each class. Is it possible to do so, as the UId is varchar.
Thanks
| UId | Class |
| 1 | Apple |
| 2 | Apple |
| 3 | Apple |
| 3a | Apple |
| 4 | Orange |
| 4a | Orange |
| 4b | Orange |
| 5 | Orange |
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.


Nitin SontakkePosted Mar 24, 2018, 7:05 AM
SunshinePosted Mar 24, 2018, 5:37 AM
SunshinePosted Mar 22, 2018, 6:04 AM
Nitin SontakkePosted Mar 22, 2018, 5:01 AM
Joginder BangerPosted Mar 22, 2018, 4:33 AM