I have a query like this:
select (price1 + price2 + price3) as total_price from prices
How can i use the computed column total_price to c
select T.total_price, P.price4 + T.total_price as total_price2 from prices as P cross apply (select P.price1 + P.price2 + P.price3) as T(total_price)