Hallo,
I'm sorry if this has been asked before, but I couldn't find something similar in the forums.
I have a table with 2 columns:
id name
1 user1
2 user2
3 user1
4 user4
I want to select all different users from the table:
SELECT DISTINCT name FROM table
But now I also want to know the id, not only the users, at the same time.
SELECT DISTINCT name, id from table doesn't work.
Can anybody help me please?
TIA
Kersten