Thread Select Distinct - Frage Doppeltes löschen.
(2 answers)
Opened by master at 2005-06-06 15:42
[quote=renee,07.06.2005, 10:47][sql]SELECT wert, ID FROM test GROUP BY wert[/sql][/quote]
nun, dabei gehen aber IDs verloren. probier doch mal [sql]SELECT wert, GROUP_CONCAT(ID) AS ids, COUNT(*) AS count FROM test GROUP BY wert HAVING count > 1[/sql] oder so... Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wie frage ich & perlintro brian's Leitfaden für jedes Perl-Problem |