View previous topic :: View next topic
|
Author |
Message |
shekhar.sumanin
New User
Joined: 18 Dec 2006 Posts: 1 Location: hyderabad
|
|
|
|
Without changing the verb ascending to descending how to get the details in descending order from the table |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
Other than reading all the data "Ascending" and storing it for a reversing sort or table lookup in reverse, I can't think of a way.
Why can't you change the verb?
Well you could add a column, load it with a reversed key and retrieve it with that index. Can a column be renamed? Drop the original key, rename it and new reversed key column and rebuild the original key to the backwards key, the program would never know what hit it....grin.... |
|
Back to top |
|
|
DavidatK
Active Member
Joined: 22 Nov 2005 Posts: 700 Location: Troy, Michigan USA
|
|
|
|
Well,
If you had a table declared as:
DECLARE TABLE1 TABLE
(COL1 DEC(5),
COL2 DEC(11)
)
Any you want to order by COL1 DESC, but you cannot use ?DESC? you could:
Code: |
SELECT COL1,
COL2
FROM DB2.TABLE1
ORDER BY (99999 ? COL1)
|
Dave |
|
Back to top |
|
|
|