Anti-Rich
Well-known member
hi all
im encountering weird result data when using a between in my sql statement... this is my sql statement:
my question is, is the between clause in an sql statement inclusive of the parameters supplied?
i checked it on msdn and it seems so, but for some reason, my 'date2' date is not showing up in my results, when i know it should.
but my 'date1' date shows up no problems...
can anyone help me? any feedback or ideas or suggestions would be greatly appreciated.
cheers
adam
im encountering weird result data when using a between in my sql statement... this is my sql statement:
VB.NET:
[SIZE=2][COLOR=#800000]SELECT DISTINCT EmployeeID, EntryDate FROM tblCapture WHERE EmployeeID = @currentEmployee [/COLOR][/SIZE]
[SIZE=2][COLOR=#800000]AND EntryDate BETWEEN @date1 AND @date2 ORDER BY EntryDate ASC[/COLOR][/SIZE]
my question is, is the between clause in an sql statement inclusive of the parameters supplied?
i checked it on msdn and it seems so, but for some reason, my 'date2' date is not showing up in my results, when i know it should.
but my 'date1' date shows up no problems...
can anyone help me? any feedback or ideas or suggestions would be greatly appreciated.
cheers
adam