Blog Stats
  • Posts - 170
  • Articles - 4
  • Comments - 54
  • Trackbacks - 7

 

Selecting random records from a table

SELECT TOP 10 * FROM tablename ORDER BY NEWID()

Where the NEWID() function returns a new Unique Identifier.

Nice tip and so simple

 

Comments have been closed on this topic.
 

 

Copyright © Paschal L