I have the following query, which I use to verify valid IP's of collectors in the network for distribution of items for separation:
Select distinct IP, USUARIO, trunc(DATA)
from
PCN_ROMANEIO_ACESSO PRA
Where pra.STATUS = 'OK'
AND trunc(pra.DATA) = trunc(sysdate)
AND PRA.DATA_SAIDA IS NULL
AND IP <> '192.168.204.1'
AND NIVEL = 'S'
order by dbms_random.value
With dbms_random.value
it eventually changes the position of the query results, but most of the time it maintains the same positions as the previous execution, as an example:
Isthereanyway,withOracleSQLonly,to"ensure" that the positions are all changed at every query execution?