Select random row, SQL Server
1 2 SELECT TOP 1 column FROM table 3 ORDER BY NEWID()
DZone Snippets > brook > sql
13375 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Robert Brook http://robertbrook.com
1 2 SELECT TOP 1 column FROM table 3 ORDER BY NEWID()