How to improve performance of non-deterministic function of a column in a where clause or join?

前端 未结 2 1931
礼貌的吻别
礼貌的吻别 2021-01-19 07:20

I would like to improve the performance of a query, which does has a where clause with a non-deterministic function call.

Select Count(*) 
From table1
Where         


        
2条回答
  •  逝去的感伤
    2021-01-19 07:35

    Have you tried to use the Local Temporary Table to first insert all the required records ? Finally, do the calculations on temporary table and return it.

提交回复
热议问题