Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HELP to get random records 1

Status
Not open for further replies.

kmishra

MIS
Mar 8, 2001
1
US
Hi I need to fetch random records from a table .
I will appriciate the effort if any body can help me . Thanks
 
Hi Kmishra,

You have not provided version information but assuming you have 8i, you can use "SELECT ... FROM ... SAMPLE..." clause
to make oracle select records randomly from table.

Possibly you can also use a programming interface like JAVA calls and select a random number, would be lillte massy though.

Hope it helps,
DP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top