how to get random 5 record in sql
SELECT top 5 * from table1 order by NEWID()
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
Manav PandyaRank #166 · 14.3K reputationPosted Jan 17, 2018, 12:07 AM EST