Hey Nick, What database are you running?
Neil TMM_CF -----Original Message----- From: Nick Sweeney [mailto:[EMAIL PROTECTED] Sent: 20 January 2005 14:42 To: CF-Newbie Subject: Combining Multiple Querry Results For some reason I can't get my head around this... And I know it should be easy (relatively) I have made a quick/silly poker website for my weekly game - and I am charting the results on the site... But I want to be able to combine results - so I can show the grand total of winnings (1st + 2nd + 3rd = MyTotalWinnings) sort of thing... Right now I can get 1st, 2nd and 3rd - as they are separate DB fields... But I am having a devil of a time SUMing the info. What I have - & Current Querries I need to combine: <!--- Get Game Stats range---> <cfquery NAME="qryGetGameStats" datasource="#datasource#"> SELECT COUNT(*) AS TotalGames, MIN(ThirdWin) AS SmallWin, MAX(FirstWin) AS BigWin, SUM(FirstWin) As FrstWin, SUM(SecondWin) As SecWin, SUM(ThirdWin) As ThrdWin, SUM(Buyin) As BuyTot FROM Game </cfquery> <!--- Get Game Winner 1st place ---> This e-mail is from Reed Exhibitions (Oriel House, 26 The Quadrant, Richmond, Surrey, TW9 1DL, United Kingdom), a division of Reed Business, Registered in England, Number 678540. It contains information which is confidential and may also be privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you have received this communication in error please return it to the sender or call our switchboard on +44 (0) 20 89107910. The opinions expressed within this communication are not necessarily those expressed by Reed Exhibitions. Visit our website at http://www.reedexpo.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:15:550 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
