Select distinct values from multiple columns

Posted by nuhusky2003 on Stack Overflow See other posts from Stack Overflow or by nuhusky2003
Published on 2010-05-18T14:05:44Z Indexed on 2010/05/18 14:10 UTC
Read the original article Hit count: 239

Filed under:
|

I had a table (Some_Table) with two columns:
A B
-------------------
1 test
2 test
3 test1
4 test1

i would like to return DISTINCT values for column B and it's associated value in column A (first in distinct set), so something like this:

A B
-----------
1 test
3 test1

What is the sql?

© Stack Overflow or respective owner

Related posts about sql

Related posts about distinct