The whole problem with the world is that fools and fanatics are always so certain of themselves, and wiser people so full of doubts. -- Bertrand Russell
Misschien een hele domme vraag, maar gebruik je dan YEAR_WEEK of WEEK? Want het moet AFAIK dat laatste zijn, dus dit:IorGie schreef op 05 november 2004 @ 19:45:
code:
1 2 3 SELECT sum(visits), EXTRACT(YEAR_MONTH FROM datum) AS maand FROM statestieken GROUP BY maand
werkt prima maar als ik MONTH vervang door WEEK werkt het niet.
code:
1
2
3
| SELECT sum(visits), EXTRACT(WEEK FROM datum) AS stat_week FROM statestieken GROUP BY stat_week |
[mierenneukmodus]Het is statistieken, met een i.
'E's fighting in there!' he stuttered, grabbing the captain's arm.
'All by himself?' said the captain.
'No, with everyone!' shouted Nobby, hopping from one foot to the other.