Random rows in SQL Server
How to get random set of rows from table in sql server..?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Manish Kumar ChoudharyRank #339 · 7.4K reputationPosted Dec 12, 2014, 2:21 AM EST
u can use following query
SELECT TOP 5 *
just increase/decrease the number of number of rows as pr ur need..