SQL Server Reference a Calculated Column

前端 未结 6 1076
傲寒
傲寒 2020-12-30 21:23

I have a select statement with calculated columns and I would like to use the value of one calculated column in another. Is this possible? Here is a contrived example to s

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 21:58

    Yes it's possible.

    Use the WITH Statement for nested selects:

提交回复
热议问题