This is my database dataset :
Table
ID Name XXX-23305 Edward, Stue^Jenna XXX-23305 Edward, Stue^Jenna XXX-23306 Cole, Slaw^Bali XXX-23306 Cole, Slaw^Bali XXX-23306 Cole, Slaw^Bali XXX-23310 Zerg, War^Finja XXX-23310 Road^Sieglinde XXX-23319 Gras, Dr.Carl^Yolo XXX-23319 Gras, Dr.Carl^Yolo As you can see there might be multiple entries for the same ID and Name combination. However in case of ID XXX-23310 there are two different names available.
Now what I want is displaying that exact dataset ( I have a database of like 31k entries with an unnknown amount of those entries ).
Is there a way to achieve that? I googled for some time and also had a look at other posts here but was unable to find anything.
EDIT1 : Desired output of the query:
ID Name XXX-23310 Zerg, War^Finja XXX-23310 Road^Sieglinde EDIT2:
not sure if anyone reads this but thanks for the solutions. I want to add another condition. Only output the data where there are more than one entry for the ID. E.g. if my sample dataset would just contain one entry for XXX-23310 then the query would print nothing as a result.
