Posts

Showing posts with the label NEWID()

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()