I\'m sure there is a way to do it but I don\'t know it anymore...
I have one big table with all the data.
In the table I have rows with information
table I
you could try this: SELECT DISTINCT A.Groupname, B.name FROM tablename A JOIN tablename B ON A.GroupID = B.GroupID
SELECT DISTINCT A.Groupname, B.name FROM tablename A JOIN tablename B ON A.GroupID = B.GroupID