SELECT RANDOM ROW


/ Published in: SQL
Save to your folder(s)

MS SQL Select a Random Row with NEWID()


Copy this code and paste it in your HTML
  1. SELECT TOP 10 PERCENT *
  2. FROM tablename
  3. ORDER BY NEWID()

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.