MySQL Forums
Forum List  »  German

Re: Doppelte Datensätze zusammenfassen
Posted by: Thomas Wiedmann
Date: December 23, 2011 04:26AM

Hallo Hans,

wenn möglich immer ein CREATE TABLE und ein paar Testdaten (INSERT) und das gewünschte Ergebnis zur Frage mitliefern. Dann reden wir vom selben und ich kann eine korrekte Lösung liefern.

Eventuelle Lösung mit GROUP BY:
SELECT zahl, SUM(zaehler) AS sum_zaehler
  FROM tabelle
 GROUP BY zahl;

Grüße
Thomas

Options: ReplyQuote


Subject
Views
Written By
Posted
15423
December 23, 2011 04:09AM
Re: Doppelte Datensätze zusammenfassen
7421
December 23, 2011 04:26AM
4715
December 23, 2011 04:57AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.