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

Home -> Community -> Usenet -> c.d.o.server -> Re: Order by non-base table item in Forms 4.5

Re: Order by non-base table item in Forms 4.5

From: Prasad Pelala <ppel_at_gwl.com>
Date: Tue, 14 Sep 1999 16:10:56 -0600
Message-ID: <37DEC7F0.C9F7C4AF@gwl.com>


It depends on when you calculate the "calculated field".

If your calculated field is based on the values from the base table items, you can use DECODE in the order by as ORDER BY decode(user_entered_paramter, 'A', ((item1*item2)/100),

                                          'B', ((item2/item2)*100) ....

Prasad.

Scott Haas wrote:
>
> Is there a way to order by a non-base table item ? This non-table item
> is calculated based on criteria that a user enters prior to querying the
> database. I want to be able to order the records based on this
> calculated field. Would I have to put the retrieved records with the
> calculated field into a temporary table and then perform the order by or
> is there a more simple way to solve this ?
>
> TIA,
> Scott
Received on Tue Sep 14 1999 - 17:10:56 CDT

Original text of this message

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