
I need a lill help from you all smartys!
I am working on an update of a datetime field and receiving the following error.
Query:
Update tbl
SET Month(column 1) = Month(Column 2),
Day(column 1) = Day(column 2)
WHERE Month(column 1) = Day(column 2)
and Day(column 1) = Month(column 2)
and id in (111,222,333)
Error:
Msg 102, Level 15, State 1, Line 2
Incorrect syntax near ‘)’.
Please assist.
Thanks, — imransi —