A query is SARGable (Search ARGument able) if a database engine can take advantage of index.
What makes a query non SARGable?
These are the few factors that makes a query non sargable.
1. Put a column inside a function in the where clause.
select
s.SalesOrderID,
s.SalesPersonID,
s.OrderDate,
s.SalesOrderNumber
from Sales.SalesOrderHeader s
where YEAR(s.OrderDate) = 2011; -- Row Retrieved: 1607 and Row read : 31465
Note: I have created covering index on the OrderDate
: