That's a nice dirty quick fix.  Thanks!  Served the purpose.

BTW, got a real nice book called "SQL Queries for mere mortals" from B &
N.  Recommending for those needing a spit shine on advanced SQL and need
an english explanation for stuff.  Handed off to my folks and they love
it.

Thanks again. 

-----Original Message-----
From: Barney Boisvert [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 31, 2005 3:35 PM
To: CF-Talk
Subject: Re: Counting rows in a SQL group

Not really.  However, you can do the inner CFOUTPUT multiple times, so
you can do something liekt his:

<cfoutput query="myQuery" group="id">

  <cfset count = 0 />
  <cfoutput>
    <cfset count = count + 1 />
  </cfoutput>

  <cfoutput>
    ... real stuff ...
  </cfoutput>

</cfoutput>

cheers,
barneyb

On Mon, 31 Jan 2005 15:32:36 -0600, Eric Hoffman
<[EMAIL PROTECTED]> wrote:
> Is there a quick and dirty way to find out the amount of rows in a 
> group?
> 
> For example, outputting
> 
> cfoutput query="blah" group="cid"
> 
> cfoutput
> /cfoutput
> 
> /cfoutput
> 
> But on that inner output, I only want to display if there is more than

> one row within that group...
> 
> Thanks!
> 
> Regards,
> 
> Eric J. Hoffman
> Market Connections, LLC
> Building Brands.  Breaking Barriers.
> 
--
Barney Boisvert
[EMAIL PROTECTED]
360.319.6145
http://www.barneyb.com/

Got Gmail? I have 6 invites.



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:192468
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