Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update Statement
Message
From
09/01/2004 11:17:05
Alvin Lourdes
Children and Youth Services Cluster
Toronto, Ontario, Canada
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Update Statement
Miscellaneous
Thread ID:
00865465
Message ID:
00865465
Views:
50
Hi,

I'm trying to update a column in a table like this.

UPDATE TurnTimeTable
SET TurnTime = (SELECT (DATECOMPLETE - DATESTART) as 'Turn Time'
WHERE EmployeeID NOT LIKE '5%' AND EmployeeID NOT LIKE '9%'
)


Is there a way to do this without getting this 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.
Next
Reply
Map
View

Click here to load this message in the networking platform