/ Published in: SQL
MS SQL Select a Random Row with NEWID()
Expand |
Embed | Plain Text
SELECT TOP 10 PERCENT * FROM tablename ORDER BY NEWID()
You need to login to post a comment.
MS SQL Select a Random Row with NEWID()
SELECT TOP 10 PERCENT * FROM tablename ORDER BY NEWID()
You need to login to post a comment.