I need to update random numbers for top 100 rows (a field) in sql. random number should be less than 100. how to do that?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In SQL 2008
I believe the same will work in SQL 2005.
[Edit]
If it doesn’t work in SQL 2005, you can do this: