I have a table with columns A, B and C. Column A might have duplicates.
I need a query that will get me a resultset with unique values in column A, and I don't care which possible duplicate it takes.
I don't know anything beforehand about the rest of the data.
An example might be:
A B C
1 8 8
1 7 7
2 10 10
In this case I'd want to select:
A B C
1 x x
2 10 10
x = It doesn't matter which value it would pick.
Kind regards,
Matthias Vance
Edit
I thought I found my solution with:
SELECT * FROM (
SELECT * FROM test GROUP BY a
) table_test;
But that wasn't working after all.
This will result in:
[Microsoft][ODBC Excel Driver] Cannot group on fields selected with '*'