set statistics io on set statistics time on go set statistics profile on go
use pubs select * from authors where (au_fname like 'S%' or au_fname like 'a%') and (state like 'CA' or state like 'UT') and (cast(zip as int) > 90000)
select * from authors where (au_fname like 'S%' or au_fname like 'a%') and (cast(zip as int) > 90000) and (state like 'CA' or state like 'UT')
select * from authors where (cast(zip as int) > 90000) and (au_fname like 'S%' or au_fname like 'a%') and (state like 'CA' or state like 'UT')
|--Clustered Index Scan(OBJECT:([pubs].[dbo].[authors].[UPKCL_auidind]), WHERE:(CONVERT(int,[pubs].[dbo].[authors].[zip],0)>(90000) AND ([pubs].[dbo].[authors].[au_fname] like 'S%' OR [pubs].[dbo].[authors].[au_fname] like 'a%') AND ([pubs].[dbo].[authors].[state] like 'CA' OR [pubs].[dbo].[authors].[state] like 'UT')))