Sample Query SELECT TOP n Column1,Column1 FROM tablename ORDER BY NEWID() But for SQL Function, modify as in below ORDER BY (SELECT [N...

Random Rows selection In SqlServer

4:50 AM Raghunatha 1 Comments


Sample Query

SELECT TOP n Column1,Column1
FROM tablename
ORDER BY NEWID()

But for SQL Function, modify as in below

ORDER BY (SELECT [NewID] FROM dbo.GetNewID)
 

1 comment:

  1. How to Play Slot Machines | DrmCD
    The 통영 출장마사지 majority of the 밀양 출장샵 casino games available online are video poker, video 진주 출장안마 keno, and video keno. Some of 김포 출장안마 these 오산 출장마사지 are free slots, video poker, and video keno. These

    ReplyDelete

Powered by Blogger.