Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 Other Topics
 how to select random rows from a table

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2005-09-06 : 07:28:06
amit writes "Dear Sir/Madam,
I am presently working on Oracle 8i. As per the answers published in the site I have tried newid or rand() to select the random row from the table. So please tell me how can I select the random row from the table"

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-09-06 : 07:28:56
NEWID() is a SQL Server function, not Oracle. SQL Team is a Microsoft SQL Server site, Oracle questions are better posted here:

http://dbforums.com/
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2005-09-06 : 11:23:36
Isn't there some sort of system.random() function in Oracle? (which I think you can just use in an ORDER BY)

Kristen
Go to Top of Page
   

- Advertisement -