> SELECT ((query1) + (query2) / 2) > > > > Which is working well however if the result of either query1 or query2 is > NULL the entire select statement returns as NULL. Is there anyway around > this? I would like to have SQL do the work rather than have two independent > queries and have CF do the division. >
SELECT ((COALESCE(query1,0)) + (COALESCE(query2,0)) / 2) -- Jim Wright Wright Business Solutions [EMAIL PROTECTED] 919-417-2257 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:245180 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