Example:
SELECT SYSTIMESTAMP FROM dual
UNION ALL
SELECT SYSTIMESTAMP + numtodsinterval(.555, 'SECOND') FROM dual
UNION ALL
SELECT SYSTIMESTAMP + numtodsinterval(.155, 'SECOND') FROM dual
UNION ALL
SELECT SYSTIMESTAMP + NUMTOYMINTERVAL(-2, 'MONTH') + numtodsinterval(1, 'DAY') FROM dual
UNION ALL
SELECT SYSTIMESTAMP + NUMTOYMINTERVAL(-1, 'MONTH') FROM dual;
Result:
SYSTIMESTAMP
07.02.17 14:09:47,280560000 +02:00
06.04.17 14:09:47,835560000 +02:00
06.04.17 14:09:47,435560000 +02:00
06.04.17 14:09:47,280560000 +02:00
06.03.17 14:09:47,280560000 +02:00
No matter how often I click on the sort button in the result header, it never is sorted chronologically ASC oder DESC or whatsoever.
It seems to perform an alphabetical sort.
Regards, Dieter
SELECT SYSTIMESTAMP FROM dual
UNION ALL
SELECT SYSTIMESTAMP + numtodsinterval(.555, 'SECOND') FROM dual
UNION ALL
SELECT SYSTIMESTAMP + numtodsinterval(.155, 'SECOND') FROM dual
UNION ALL
SELECT SYSTIMESTAMP + NUMTOYMINTERVAL(-2, 'MONTH') + numtodsinterval(1, 'DAY') FROM dual
UNION ALL
SELECT SYSTIMESTAMP + NUMTOYMINTERVAL(-1, 'MONTH') FROM dual;
Result:
SYSTIMESTAMP
07.02.17 14:09:47,280560000 +02:00
06.04.17 14:09:47,835560000 +02:00
06.04.17 14:09:47,435560000 +02:00
06.04.17 14:09:47,280560000 +02:00
06.03.17 14:09:47,280560000 +02:00
No matter how often I click on the sort button in the result header, it never is sorted chronologically ASC oder DESC or whatsoever.
It seems to perform an alphabetical sort.
Regards, Dieter
Last edited: