Thanks Chris!

I am going to remember this. This is extremely useful!!

Bob
On Fri, 30 Mar 2007 11:39:47 -0400, "Peterson, Chris"
<[EMAIL PROTECTED]> said:
> You don't have to do it that way.  Try using sub-selects to get the
> child data.  I do this in DB2 all the time, here is an example.
> 
> 
> SELECT
>       Col1,
>       Col2,
>       Col3,
>       (SELECT SUM(Revenue) FROM rev WHERE Order = A.Order) as
> TotalRevenue
> FROM
>       ORDER A
> WHERE
>       Col1 = 'Whatever'
> 
> 
> You can do as many of those sub-select as columns you need.  Just ensure
> that the data set is returning only a single record.
> 
> 
> Also, you could do a nice Union All on your QoQ, if the fields are the
> same.
> 
> 
> If we still are not getting what your trying to do, maybe post some
> code?
> 
> Chris
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJQ 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:274212
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