Registriert seit: 26. Aug 2004
Ort: Nebel auf Amrum
3.154 Beiträge
Delphi 7 Enterprise
|
Re: DateTime nach Wochentag gruppieren
26. Apr 2010, 00:23
SQL-Code:
SELECT YEAR(indate) AS jahr,
MONTH(indate) AS monat,
DAY(indate) AS tag,
SUM(anzahl) AS anzahl
FROM messwerte
WHERE indate > :MD1
GROUP BY YEAR(indate), MONTH(indate), DAY(indate)
SQL-Code:
SELECT DateSerial(YEAR(indate), MONTH(indate), DAY(indate)) AS datum,
SUM(anzahl) AS anzahl
FROM messwerte
WHERE indate > :MD1
GROUP BY YEAR(indate), MONTH(indate), DAY(indate)
|
|
Zitat
|