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
Post a Comment