Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update from CROSS APPLY
Message
De
08/08/2013 14:42:58
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01580047
Message ID:
01580073
Vues:
41
>
>UPDATE Invoice SET Status=DispatchDetail.Status
>FROM Invoice
> INNER JOIN (SELECT InvoiceDetail.AddDate,*
>                    FROM Invoice
>             CROSS APPLY (SELECT TOP 1 InvoiceDetail.Numero,InvoiceDetail.AddDate
>                                 FROM InvoiceDetail
>                          WHERE InvoiceDetail.NoInvoice=Invoice.Numero
>                          ORDER BY InvoiceDetail.Numero DESC) InvoiceDetail
>             WHERE Invoice.Status='1899-12-30 00:00:00.000') InvDet
>      on InvDet.NoInvoice=Invoice.Numero
>
>?

Thank you, this works perfectly.
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform