Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> order by (asc and desc)

order by (asc and desc)

From: Eric Luu <ericluu_at_hotmail.com>
Date: Thu, 4 Nov 1999 14:05:16 -0800
Message-ID: <382202b9$0$206@nntp1.ba.best.com>


Hi All,

  Is there a way of choosing which ordering to use (ascend or descend) depending on a flag.

like:

 select a
   from abc
  order by a decode(flag, 1, asc, 2, des)

I can use dynimic query, but too much.
Any help would be appreciated.

you can email me at
ericluu_at_hotmail.com
Thanks Received on Thu Nov 04 1999 - 16:05:16 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US