There are lots of ways to select a random record or row from a database table. Here are some example SQL statements that don't require additional application logic, but each database server requires different SQL syntax.
SELECT TOP 1 column FROM table
ORDER BY NEWID()
Hope this helps
Cheers!!!
0 Responses to "SQL Server Select a random row from a table"
Post a Comment