Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select and Update
Message
From
30/11/2010 17:18:40
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Application:
Web
Miscellaneous
Thread ID:
01491203
Message ID:
01491212
Views:
35
>Try
>
>
>;with cte as (SELECT Color.Title_E,Color2.Title_E AS Title_E2,Color,Color2 FROM RepairOrder
> LEFT JOIN Color ON RepairOrder.NoColor=Color.Numero
> LEFT JOIN Color AS Color2 ON RepairOrder.NoColor2=Color2.Numero) 
>
>update cte set Color = Title_E, Color2 = Title_E2
>

Thanks, this is also an interesting approach.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform