7
Answers

MIn and Max or Range

Photo of Sunshine

Sunshine

7y
711
1
Hi,
 
I have a table in SQL like so
 
 UId Class 
 1 Apple   
 2Apple 
 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

Answers (7)