Sunday, July 12, 2009

Order by Random row in Microsoft SQL Server

SELECT TOP 1 column FROM table
ORDER BY NEWID()

No comments:

Post a Comment