Subquery v/s inner join in sql server

后端 未结 6 1502
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 06:15

I have following queries

First one using inner join

SELECT item_ID,item_Code,item_Name 
FROM [Pharmacy].[tblitemHdr] I 
    INNER JOIN  EMR.tblFavour         


        
6条回答
  •  感情败类
    2020-11-30 07:09

    In Sql Server Management Studio you can enable "Client Statistics" and also Include Actual Execution Plan. This will give you the ability to know precisely the execution time and load of each request.

    Also between each request clean the cache to avoid cache side effect on performance

    USE ;
    GO
    CHECKPOINT;
    GO
    DBCC DROPCLEANBUFFERS;
    GO
    

    I think it's always best to see with our own eyes than relying on theory !

提交回复
热议问题