Why I get this error message?

Why do this error and how to fix it?

Query:
< name cfquery = "yearlyChart" datasource = "#dsn #" >
SELECT sum (distance) AS yrDistance, walkDate
OF bockWalk
WHERE the year (walkDate) = #year (Now ()) #.
GROUP BY month (walkDate)
< / cfquery >

Error:
You tried to execute a query that does not include the specified expression 'walkDate' as part of an aggregate function.

When I deleted the table style attribute it worked correctly. So I think you just need to tweak your xml file some.

Trevor

Tags: ColdFusion

Similar Questions

Maybe you are looking for