Forum: SQL |
Thema:
Re: Tabelle mit SQL erstellen |
Von:
Berthold Neumann (
01.10.2004 08:06) |
Select year(datum),month(datum), sum (spalte)
from tabelle
group by year(datum),month(datum)
order by year(datum),month(datum)
Das gehört in die Auswertung oder in einem View.
In einer eigenen Tabelle solltest du es nur temporär speichern, oder du bist dabei OLAP zu Fuss zu programmieren.
Antworten
Vorsicht bei der Eingabe: Die Zeichen ' oder -- sind nicht erlaubt!