Are you wanting to count:
1. The number of actual records returned from the query?
2. The count of data as related to a particular question ID?

M!ke 

-----Original Message-----
From: Stuart Kidd [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 21, 2005 11:25 AM
To: CF-Talk
Subject: Counting c(rows)

Hi guys,

I'm trying to count the number of rows in my select, can anyone help
with this please.

Does this look right?

            <!-- Retrieve Interview -->
            <cfquery name="GetQuestions" datasource="user020">
            SELECT questionID, question, interviewID
            FROM tbl_020publicQuestions
            WHERE interviewID = #CheckInterview.interviewID#
            COUNT as numberOfQuestions

Thanks,

Saturday


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:203825
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

Reply via email to