I have a query like this:
select a,b, (a+b) as c, (a-b) as d, (a+b)*-1 as e, (a+b)/(a-b) as f from test;
Is there a way where I can use my previously defined alias as column so it will be like:
(a+b)/(a-b) as f from test
to c/d as f from test
Or any other solution where I will not re-code any of the expression in this query.