Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
CASE WHEN with condition on select value
Message
From
14/04/2015 10:32:34
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01618336
Message ID:
01618391
Views:
35
>
>;with cte as (select client.*,  inv.AddUser as newUser, Inv.NoItem, 
> row_number() over (partition by Inv.NoClient order by Inv.Al DESC) as Rn from Client
>inner join Invoice inv on Client.Numero = Inv.NoClient)
>
>update cte set NoProvince = newUser where Rn = 1 and NoItem = 23
Thanks
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
Reply
Map
View

Click here to load this message in the networking platform