Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serializing rows
Message
From
09/12/2009 11:37:32
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2008
Miscellaneous
Thread ID:
01438197
Message ID:
01438235
Views:
35
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform