given if we have an 'Orders' table and columns like this
+------------+-----------------------+
|   Orders   |                       |
+------------+-----------------------+
| OrderId    | => clustered index    |
| CustomerId |                       |
| OrderDate  | => nonclustered index |
+------------+-----------------------+
so my question is, what the core difference between those queries, and which one is better in the performance perspective mainly
select * from Orders 
where OrderDate >= '2000-01-01' and OrderDate <= '2000-12-31' 
and
select * from Orders 
where YEAR(OrderDate) = 2000
 
     
     
    