DBAsupport.com Forums - Powered by vBulletin
Results 1 to 2 of 2

Thread: sort option

  1. #1
    Join Date
    Jul 2001

    sort option

    I am trying to sort the list in ascending and descending.
    Here in the list I have underscore values also.

    When I sort ascending it works fine
    (Underscore values (in ascending order) first and then
    Alphabets next (in ascending order))

    But when I sort descending it gives output like alphabets first and then underscores values. BUT I want to view the list as
    Underscore values first (descending order) and then alphabets (descending order).

    Can some one please let me know how to make underscore values come first in descending order and the alpha bets in descending order.


  2. #2
    Join Date
    Aug 2002
    Colorado Springs
    Order By Decode(SubStr(my_value,1,1),'_',1,2) asc , my_value desc
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.