I have a strange problem.. The following update query is
not working
update userinfo set userstatus=0 where enddt is not null
and enddt<getdate()
and it gives me the following error:
Subquery returned more than 1 value. This is not permitted
when the subquery follows =, !=, <, <= , >, >= or when the
subquery is used as an expression.
Also i tried out the following queries which also throwed
the same error.
update userinfo set userstatus=0 from userinfo where
userid in (select userid from userinfo where enddt is not
null and enddt<getdate())
update userinfo set userstatus=0 where userid in
(1554,1653,1677)
Please suggest me a suitable query to perform the action.