how to select records randomly in SQL

select top 3 * from tb_mytable order by newid()

select top 3 * from tb_mytable order by Rand()

Comments

Popular posts from this blog

IBM FileNet: Bulk Processing using JavaScript

DB2 Date Time Functions

File Net Insert Document