how to use alias in where clause in mysql with lead lag functions

前端 未结 0 604
[愿得一人]
[愿得一人] 2021-01-24 05:12

I am trying to compare value with an alias but it says scolumn not recognized. Docs says cant use alias in where clause

with CTE AS
(
    Select StockCode as TopP         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题