Hi have the following query :-
This results in 3 columns, one of which is a total where the stage = 1.
Is it possible, in the same query, to have a forth column showing the total where the stage = 2?
Thanks
Code:
SELECT t1.QuoteID, t1.Supply_Num, t2.Cost AS Stage1Cost
FROM qryCML as t1 LEFT JOIN tblCommissionNew as t2 ON t1.QuoteID = t2.Quote_ID
WHERE (((t2.[stage])=1))
GROUP BY t1.QuoteID, t1.Supply_Num, t2.Cost;
This results in 3 columns, one of which is a total where the stage = 1.
Is it possible, in the same query, to have a forth column showing the total where the stage = 2?
Thanks