I seek a way to be able to write something like this
select complicated_calculation1 as comp1,
complicated_calculation2 as comp2,
(comp1/comp2) as percent
from table
rather than writing it in the far more complicated way like this
select complicated_calculation1 as comp1,
complicated_calculation2 as comp2,
(complicated_calculation1/complicated_calculation2) as percent
from table
Is this possible?
Not in the same line.
What you can do is: