RE: group by year

2002-04-04 Thread Jens Vonderheide
> I have a MySQL database containing records from several years. I want to > calculate counts of records for each year and separate values for a couple > of other fields. Each record contains a date-field, date. I tried putting > the function YEAR(date) into a GROUP BY section, but this didnot wor

RE: group by year

2002-04-04 Thread Rick Emery
GROUP BY is done on column value. show us you query -Original Message- From: Han de Neeling [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 7:15 AM To: [EMAIL PROTECTED] Subject: group by year I have a MySQL database containing records from several years. I want to calculate

group by year

2002-04-04 Thread Han de Neeling
I have a MySQL database containing records from several years. I want to calculate counts of records for each year and separate values for a couple of other fields. Each record contains a date-field, date. I tried putting the function YEAR(date) into a GROUP BY section, but this didnot work. ---