Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update records randomly
Message
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Title:
Update records randomly
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01326522
Message ID:
01326522
Views:
58
Hi everybody,

I'd like to update some records in my table. I don't have any criteria to update, so it should be some random number of records.

Do you know how can I do this in SQL Server?

I used

update Schools set SchoolPhone = '718-805-9999' where school in (select top 20 school from Schools order by School) but this is not random.

Thanks a lot in advance.

UPDATE. Found my answer already.
If it's not broken, fix it until it is.


My Blog
Reply
Map
View

Click here to load this message in the networking platform