See, I would have opened up calculator and typed:

12 + 3 + 4 + 0 + 6 + 5 + 4 + 3

Tee hee...

Are you trying to add up a bunch of recordcounts?  If you don't want to
write a separate query, you can use <cfloop> on your recordset and add it
all up...  Not as good as using a separate query though.

-----Original Message-----
From: Sicular, Alexander [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, April 19, 2001 4:39 PM
To: CF-Talk
Subject: RE: To sum up some numbers


in you query just use 

select sum(columnname)
from ...
where ...

good luck,

alex

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 6:26 PM
To: CF-Talk
Subject: To sum up some numbers


I think I don't get it today.

How can I add (sum up) the following numbers:
12 3 4 0 6 5 4 3 ...

They do come from a query as #myquery.recordcount#

Do I need an array for this ?? (And then the function ArraySum ?) Or is
there s.th. easier ?

Uwe
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to