mysql - re use existing selected column in sql server? -


say have query goes this

select column1 ,column2 ,column3 ,column4 ,column5 + reusethiscolumn reusethiscolumn2 

[can use here data derived column below?]

,case[computation here] reusethiscolumn table 

is there way this? in advance.

select  column1 ,column2 ,column3 ,column4 ,(column5 + reusethiscolumn) reusethiscolumn2 (   select      column1    ,column2    ,column3    ,column4    ,column5    ,case[computation here] reusethiscolumn   table ) subq 

Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -