ok...so let's just try to summarize and put this issue to rest... there are times when select count(*) is appropriate. there are times when returning records is appropriate.
kevin has not had a need to return just a count. fair enough. others have. fair enough. So how about those CF test questions... :) On 8/30/05, Nick Han <[EMAIL PROTECTED]> wrote: > Kevin, how about this scenario? > > <cfquery name="query1"> > Select count(*) from users where lastname like 'smith%' > </cfquery> > > <cfif query1.count gt 500> > Notify users that they have to do a nightly scheduled report. > <cfelse> > /* run a full-on query */ > <cfquery name="query2"> > Select lastname, firstname, phone, address, blah blah > from users where lastname like 'smith%' > </cfquery> > </cfif> > > -----Original Message----- > From: Kevin Aebig [mailto:[EMAIL PROTECTED] > Sent: Tuesday, August 30, 2005 11:59 AM > To: CF-Talk > Subject: RE: CF Test > > One... I'm not laughing. > Two... Exactly my point. I can't remember the last time I *only* needed > a > count. > > Cheers, > > Kevin > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:216856 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