Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Do This In SQL
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01064287
Message ID:
01064308
Views:
19
Thanks Sergey (Thats Sergey, with an 'S')



>Try
>UPDATE mod
>	SET accttype = '', e_type = commits.oldetype
>	FROM media_order_detail mod
>	JOIN commits ON commits.id = mod.id
>		AND commits.statname = 'WFSB' and commits.invoiceid = '86883-2_'
>
>>I'm trying to work out this update
>>
>>Is this the most efficient way to do this?
>>
>>
>>UPDATE media_order_detail
>>  SET accttype = '',
>>      e_type = commits.oldetype
>>   where id in
>>    (select id
>>      from commits
>>      where statname = 'WFSB' and invoiceid = '86883-2_'
>>
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform