inner join Vs scalar Function

前端 未结 4 1966
太阳男子
太阳男子 2020-12-31 07:15

Which of the following query is better... This is just an example, there are numerous situations, where I want the user name to be displayed instead of UserID



        
4条回答
  •  失恋的感觉
    2020-12-31 07:56

    To help you more, just a tip, in SQL server using the Managment studio you can evaluate the performance by Display Estimated execution plan. It shown how the indexs and join works and you can select the best way to use it.

    Also you can use the DTA (Database Engine Tuning Advisor) for more info and optimization.

提交回复
热议问题