I need to return a computed column from a stored procedure, and I will need to use this computation in other places in the same Select statement.
A simple example might be:
Select (Length * Width) AS 'Area',
(Area * Height) AS 'Volume'
From Stuff
Where Area > 25
In this case, I want to replace "Area" with the (Length * Width) formula, and use it multiple times.
Thank you,
Bryan