My Oracle Support Banner

RDBPROD: Unexpected Behavior When Using Descending vs Desc in SQLMOD SELECT (Doc ID 66336.1)

Last updated on APRIL 14, 2022

Applies to:

Oracle Rdb Server on OpenVMS - Version 6.1 and later
HP OpenVMS Alpha
HP OpenVMS Itanium


You have created an SQLMOD routine that has a SELECT statement using ORDER BY x specifying DESCENDING. The results are not what you expected; ie., the results are in ASCENDING order even though you specified DESCENDING.


Note: The BLR also indicates ASCENDING.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.