Query Performance with NULL

前端 未结 8 2087
失恋的感觉
失恋的感觉 2021-01-14 14:29

I would like to know about how NULL values affect query performance in SQL Server 2005.

I have a table similar to this (simplified):

ID | ImportantDa         


        
8条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-14 14:51

    The alternative is to normalize QuickPickOrder into a table with a foreign key, and then perform an inner join to filter the nulls out (or a left join with a where clause to filter the non-nulls out).

提交回复
热议问题