How about using the SUM function? >From SQL Book On Line: SELECT type, SUM(price), SUM(advance) FROM titles WHERE type LIKE '%cook'
On 1/26/07, Steve Good <[EMAIL PROTECTED]> wrote: > > I'm back with another dumb question. > > I am trying to get the sum of an expenses column for all rows. I have > no clue how to go about this. I played around with cfloop a little bit, > but just ended up adding the current row's column to itself, then moving > on to the next row and doing the same. > > I'm sure it's an easy thing to do, but for the life of me I can't figure > it out. > > Thanks in advance for the help :) > > ~Steve > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:267814 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4