One can use simple conditions like >= and <=, or use between/and but the trick here is to know your exact data type.
- Sometimes date fields contain time and that is where the query can go wrong so it is recommended to use some date related functions to remove the time issue. In SQL Server common function for accomplishing the task datediff () function.
- Interviewees also have to be aware of different time zones and server time zone.
-To increase query performance you may still want to use between however you should be aware of proper format you should use if not it might misbehave during filtering.