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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: One last question

Re: One last question

From: Jonathan Gennick <jonathan_at_gennick.com>
Date: Fri, 16 Jul 2004 21:09:51 -0400
Message-ID: <1521111972521.20040716210951@gennick.com>


I've definitely got to pay more attention when I cut and paste addresses. Well, never mind my question below. Thanks to Wolfgang's help, I've got that one nailed.

Best regards,

Jonathan Gennick --- Brighten the corner where you are http://Gennick.com * 906.387.1698 * mailto:jonathan@gennick.com

Join the Oracle-article list and receive one article on Oracle technologies per month by email. To join, visit http://five.pairlist.net/mailman/listinfo/oracle-article, or send email to Oracle-article-request_at_gennick.com and include the word "subscribe" in either the subject or body.

Friday, July 16, 2004, 9:01:58 PM, Jonathan Gennick (jonathan_at_gennick.com) wrote: JG> Wolfgang,

JG> One last question, and then I'm done for the night. Here's JG> that query again:

SQL>> SELECT *

JG>   2  FROM ( SELECT flag, TO_NUMBER(num) num
JG>   3         FROM subtest
JG>   4         WHERE flag IN ('A', 'C') )
JG>   5  WHERE num > 0;
JG> ERROR:
JG> ORA-01722: invalid number


JG> How can I know whether it is "num > 0" that is causing the
JG> error? Could it be that TO_NUMBER(num) is being evaluated
JG> *before* the subquery's WHERE clause filters out rows NOT IN JG> ('A', 'C')?

JG> In other words, how can I know that the problem I'm seeing JG> is really the result of the two queries being merged?

JG> Best regards,

JG> Jonathan Gennick --- Brighten the corner where you are JG> http://Gennick.com * 906.387.1698 * mailto:jonathan@gennick.com

JG> Join the Oracle-article list and receive one
JG> article on Oracle technologies per month by 
JG> email. To join, visit http://five.pairlist.net/mailman/listinfo/oracle-article, 
JG> or send email to Oracle-article-request_at_gennick.com and 
JG> include the word "subscribe" in either the subject or body.

JG> ----------------------------------------------------------------
JG> Please see the official ORACLE-L FAQ: http://www.orafaq.com
JG> ----------------------------------------------------------------
JG> To unsubscribe send email to:  oracle-l-request_at_freelists.org
JG> put 'unsubscribe' in the subject line.
JG> --
JG> Archives are at http://www.freelists.org/archives/oracle-l/
JG> FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
JG> -----------------------------------------------------------------


----------------------------------------------------------------
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 Fri Jul 16 2004 - 20:07:18 CDT

Original text of this message

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