I have table like this:
a b 1 23 1 2 1 7 2 9 2 11
I want to select the first row(orde
If as you indicated, order doesn't matter, any aggregate function on b would be sufficient.
b
SELECT a, b = MIN(b) FROM YourTable GROUP BY a