> This can't be done can it. I'm sure I've seen this done in Oracle and MS > queries, but not a CF query of a query.
I'm slightly confused by your interchagable use of the words "count" and "order". According to the docs, this should work for a count: SELECT count(somecol) AS ROWCOUNT FROM variables.CPT_data WHERE [...] If you are looking to append "rownumber" column to your query, I'm not sure you can do it in the SQL, but rownumber is a natural part of ColdFusion's query return object in the format of query_name.currentRow. Is that what you are looking for? -Cameron -- Cameron Childress Sumo Consulting Inc http://www.sumoc.com --- cell: 678.637.5072 aim: cameroncf email: [EMAIL PROTECTED] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204603 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

