I have a question about the performance of the BETWEEN keyword vs. using the < and > operators to compare the upper and lower bound dates.
Example:
WHERE EncDate BETWEEN '2010-04-30' AND GETDATE() - 1
WHERE EncDate > '2010-04-29' AND EncDate < GETDATE()
Both queries above should output the exact same number of rows, however, am I correct in assuming that BETWEEN keyword performs an inclusive (>= or <=) comparison behind the scenes which is not as performant as doing a < or > comparison from the second query?