Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Selecting Non repeatable random records

$
0
0

HI all,

 I have 20 records in table. I want to get a random single  record from that table.And the main thing is

if i having 20 records 1st time i'm getting a random record.the upcoming execution result that does not show previous random record .

That is out of 20 records ,each time i want to select record that does not occur previously.so at 20 executions i have 20 result with non-repeatable.

If i am confusing you,sorry for this.....pls help me to get a suffled record at each time

note: i'm used NEWID() that gives random records but it occurs previously some time

Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>