Mark/Dave... thanks so much. That worked perfectly!

-----Original Message-----
From: Mark Kruger [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 19, 2008 10:19 AM
To: CF-Talk
Subject: RE: (ot) SQL question...

Che,

Well you could it inline... something like 



Select sum(t.total) as total, t.source
FROM
(
select count(*) as total, source
from listings
group by source

union all

select count(*) as total, source
from speclistings
group by source

union all

select count(*) as total, source
from psportlistings
group by source
) t
Group by t.source
Order by total







~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:311254
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to