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 -> Re: Help! Long data types

Re: Help! Long data types

From: Steven Franklin <steven.franklin_at_mci.com>
Date: Fri, 19 Mar 1999 13:35:37 GMT
Message-ID: <36F252F8.BBB250A1@mci.com>


The IN clause is real slow and inefficient. Use an outer join instead.

SELECT COUNT(*)
FROM tmp_poheader,

            poheader
WHERE (tmp_poheader.ponum=poheader.ponum(+)) AND

              (poheader.ponum IS NULL)

Arthur Merar wrote:

> Hello,
>
> Actually I have two questions.
>
> First, what is it with these long data types? Why can't I do anything
> with them? I need to compare to fields called NOTES in two different
> tables.....the NOTES field is of LONG data type.....how can I do this?
> I keep getting errors......
>
> Also, I run this query:
>
> select count(*) from TMP_POHEADER where
> ponum NOT IN (select ponum from POHEADER);
>
> That is a simple query right? There are even indexes on the PONUM
> field. Why then after 3 hours do I not get any results? There are
> only 30,000 records in the tables.....
>
> Any help would be appreciated....
>
> Thanks,
>
> Arthur
> amerar_at_unsu.com
Received on Fri Mar 19 1999 - 07:35:37 CST

Original text of this message

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