SyntaxFix
Write A Post
Hire A Developer
Questions
Well you are trying to compare Date with Nvarchar which is wrong. Should be
Where dates between date1 And date2 -- both date1 & date2 should be date/datetime
If date1,date2 strings; server will convert them to date type before filtering.