Given a small Access database containing:

ID, PA_COUNTRY, PA_CATEGORY


<cfquery name="PA_CT" datasource="phoenixart">
SELECT DISTINCT PA_COUNTRY, ID, PA_CATEGORY
  FROM papers
  GROUP BY PA_CATEGORY
</cfquery>


I get the following error:
You tried to execute a query that does not include the specified expression
'PA_COUNTRY' as part of an aggregate function.

If I remove the "GROUP BY" - it works....but I need that in there!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to