I’m familiar with MySQL but not in MS SQL,
In MySQL the query will be like this:
SELECT * from tablename ORDER BY RAND() LIMIT 5
The above query gives a 5 random number of result from the table. The same query how can i do with MS SQL?
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.
Try,