RE: cold fusion reporting...

2002-01-15 Thread Bryan Love
SELECT format(thedate,'d') AS e, count(*) AS ec from products Group by format(thedate,'d') +---+ Bryan Love Macromedia Certified Professional Internet Application Developer Database Analyst Telecommunication Systems [EMAIL

RE: cold fusion reporting...

2002-01-14 Thread Darryl Lyons
SELECT YEAR(datefield) as year, MONTH(datefield) as month, DAY(datefield) as day, COUNT(anotherfield) as nr FROMtablename WHERE datefield BETWEEN @start AND @end GROUP BY YEAR(datefield), MONTH(datefield), DAY(datefield) ORDER BY year, month, day *should* work. The reason I split up the