Tuesday, January 4, 2011

Randomly Order a Result Set in SQL Server

SELECT *
FROM myTable
ORDER BY NEWID()

No comments:

Post a Comment