Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Serializing rows
Message
De
09/12/2009 11:37:32
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Divers
Thread ID:
01438197
Message ID:
01438235
Vues:
34
Thanks, Boris

I'll try it.


>>UPDATE YourTable SET YourColumn
FROM YourTable
INER JOIN (SELECT SoNo, AddDate, ROW_NUMBER() OVER (PARTITION BY Sono ORDER BY AddDate) AS RowNum
FROM YourTable) Tbl1
ON YourTable.SoNo = Tbl1.Sono AND
YourTable.AddDate = Tbl1.AddDate
NOT TESTED!!!!!!
Make a good backup before trying it :-)
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform