Veröffentlicht 23. Oktober 200321 j Hallo, ich weis diesen Problem hat man schon nicht nur einmal besprochen, jedoch komme ich irgend wie damit nicht klar. Also ich möchte aus eine Tabelle alle doppelte Datensätze rauskriegen, das mache ich so: SELECT v.[M], v.[A], v.[B], v.[P] from tabele v group by v.[M], v.[A], v.[B], v.[P] having count(v.p)>1 [/PHP] so kriege ich auch die doppelte Datensätze allerdings nur einmal eingezeigt ;( Wie schaffe ich es dass ich alle Datensätze die mehre als einmal vorkommen angezeigt kriege Vielen Dank
23. Oktober 200321 j Vielleicht so: select v.[M], v.[A], v.[B], v.[P] from tabele v where v.[P] = ( SELECT v.[P] from tabele v group by v.[P] having count(v.p)>1 ) [/code] Frank
Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.