1

I tried both these queries but none of them seem to work: I wish to fetch random rows from result set in oracle

select * from TABLE_NAME t where t.ent_application_id = 13101192 order by Dbms_Random.Random

select * from TABLE_NAME t where t.ent_application_id = 13101192 order by Dbms_Random.Value

Community
  • 1
  • 1
fiddle
  • 986
  • 4
  • 14
  • 32

1 Answers1

1

Try

SELECT T.COLUMN1, T.COLUMN2, DBMS_RANDOM.VALUE
FROM TABLE_NAME T 
WHERE T.ENT_APPLICATION_ID = 13101192 
ORDER BY 3
DNac
  • 2,343
  • 7
  • 26
  • 52