hi guys
im a little stuck - how would I join this query
to
? any ideas
thanks
im a little stuck - how would I join this query
Code:
select *,isnull(price_band_1,0)+isnull(price_band_2,0)+isnull(price_band_3,0)+isnull(price_band_4,0)+isnull(price_band_5,0) as pricesum from TESTCA_Specials WHERE ID IN (1, 3, 5, 9, 13, 19, 31)
Code:
select totalsum = SUM(totalsum) from (Select isnull(price_band_1,0)+isnull(price_band_2,0)+isnull(price_band_3,0)+isnull(price_band_4,0)+isnull(price_band_5,0) as totalsum from TESTCA_Specials WHERE ID IN (1, 3, 5, 9, 13, 19, 31) ) x
thanks
Comment