sql server 2005 - Can I trust Execution plans? -
I have these questions: the three returns similar costs and the actual execution plans..why and how?
CTE (comno) as (separate comno selection select with = company) ID ErpEnterpriseId = ROW_NUMBER () (select command), CTE by comno comno comno = ErpEnterpriseId, RowNo = ROW_NUMBER () (company order by erpEnterpriseId group) over ErpEnterpriseId selection erpEnterpriseId over ROW_NUMBER () (order erpEnterpriseId) RowNo to select so (the company DISTINCT erpEnterpriseId) x
Comments
Post a Comment