Here is the MSSQL 2000 code I am trying to use:
update mwo.dbo.mwo_backup set completed_week = (select DatePart(week, responsible_date) from mwo.dbo.mwo_backup where responsible_status = 'Complete')
I get the following error:
Server: Msg 512, Level 16, State 1, Line 1
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated.
Any ideas? Thanks a bunch!
update mwo.dbo.mwo_backup set completed_week = (select DatePart(week, responsible_date) from mwo.dbo.mwo_backup where responsible_status = 'Complete')
I get the following error:
Server: Msg 512, Level 16, State 1, Line 1
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
The statement has been terminated.
Any ideas? Thanks a bunch!