hi,
Haben fertig glaube das muesste richtig sein
SELECT SUM( Gewicht )
FROMtouren
WHERE MONTH( Verladedatum ) =08 AND YEAR( Verladedatum ) =2004
jepp.
aber so hast du das ja nur für einen speziellen monat - wenn du das jetzt für alle haben möchtest, müsstest du diese query ja x mal mit veränderten parametern aufrufen - ungünstig.
wenn du es also "für alle" haben willst, beschäftige dich trotzdem noch mal mit GROUP BY.
gruß,
wahsaga
--
"Look, that's why there's rules, understand? So that you _think_ before you break 'em."
"Look, that's why there's rules, understand? So that you _think_ before you break 'em."