Quantcast
Channel: EasyOraDBA
Viewing all articles
Browse latest Browse all 263

Select Random Rows from Table in Oracle

$
0
0

To select 10 random records from a table in Oracle

SELECT * FROM
( SELECT * FROM TABLE_NAME
ORDER BY dbms_random.value )
WHERE rownum <= 10 ;



Viewing all articles
Browse latest Browse all 263

Trending Articles