raven
02-28-2003, 09:51 AM
I'm looking at using ORDER BY NEWID() in my sql statement to generate random records from a database, like this:
"SELECT TOP 3 * FROM tblTable ORDER BY NEWID()"
Is this an efficient method for selecting from tables with less than 5,000 rows, or can anyone suggest a better approach.
DB is MS SQL Server 2000.
"SELECT TOP 3 * FROM tblTable ORDER BY NEWID()"
Is this an efficient method for selecting from tables with less than 5,000 rows, or can anyone suggest a better approach.
DB is MS SQL Server 2000.