MySQL Forums
Forum List  »  German

Nulldurchgänge zählen
Posted by: Stefan Jann
Date: March 23, 2012 09:55AM

Hallo zusammen
Ich habe ein Problem bei einer Abfrage:
ich habe eine Tabelle die so aussieht:
DatumZeit Temperatur
2012-03-12 10:00:00 0.55
2012-03-12 10:06:00 -0.20

nun muss ich die Anzahl negativer Nulldurchgänge zählen, so in der Art: zähle wenn die Temperaur < 0 und vorherige Temperatur >= 0

Leider habe ich kein Plan wie ich die Bedingung vormulieren muss.
Hat irgend jemand eine Idee?

Options: ReplyQuote


Subject
Views
Written By
Posted
Nulldurchgänge zählen
1980
March 23, 2012 09:55AM
1278
March 23, 2012 11:17AM
1133
March 25, 2012 05:18AM


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.