Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How To Do This In SQL
Message
From
01/11/2005 19:12:17
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01064287
Message ID:
01064300
Views:
16
>Ok.
>
>Why not?
>
>>>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_'
>>>
>>
>>But this cannot work.

You cannot use commits.oldetype
because commits doesn't belong to the set of FROM tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform