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

Home -> Community -> Mailing Lists -> Oracle-L -> Fw: a pl/sql question

Fw: a pl/sql question

From: Juan Cachito Reyes Pacheco <jreyes_at_dazasoftware.com>
Date: Thu, 29 Apr 2004 16:59:58 -0400
Message-ID: <016a01c42e2c$f41df820$2501a8c0@dazasoftware.com>


Sorry Jared I forgot not to include question in the answer

> I don't know if this will improve performance but here is an example, use
> outer join.
> select C.TRC_CUENTA,nvl(A.CTS_NOMBRE,B.CTS_NOMBRE) name
>
> from transace C,
>
> ( select CTS_CUENTA,CTS_NOMBRE from cuentaE where cts_TRATAMIENTO = 'IN')
A,
>
> ( select CTS_CUENTA,CTS_NOMBRE from cuentaE where cts_TRATAMIENTO = 'EG')
B
>
> WHERE
>
> C.TRC_CUENTA = A.CTS_CUENTA(+) AND C.TRC_CUENTA =B.CTS_CUENTA(+)
>
>
>
> If you could create a materialized view from this I think this could
really
> help.

Even you could try to create a view.
>
> If you see when there is records in the second query it will return null
>
> Juan Carlos Reyes Pacheco
> OCP
> Database 9.2 Standard Edition



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Thu Apr 29 2004 - 16:00:50 CDT

Original text of this message

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