You are dealing with typing in both instances.
What is the datatype of column "deal"
If it is a bit then you must use 1/0 not "true" or "false"
If it is an int, same story.
If it is a varchar column then 'true' should work fine.
As for the date comparison, here are some ideas:
DECLARE @date...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.