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: ORACLE DOESN'T COMPLY TO BASIC STANDARD SQL: SIMPLE QUERIES DOESN'T WORK

Re: ORACLE DOESN'T COMPLY TO BASIC STANDARD SQL: SIMPLE QUERIES DOESN'T WORK

From: HansF <News.Hans_at_telus.net>
Date: Thu, 03 Nov 2005 15:45:51 GMT
Message-Id: <pan.2005.11.03.15.46.02.630976@telus.net>


On Thu, 03 Nov 2005 03:17:38 -0800, LP wrote:

> select nmbr from Numbers where nmbr not in
> (select 1/value from IntNumbers Where Kind='POSITIVE INT' or
> Kind='NEGATIVE INT') ;
> REM return Error 1476 divisor is equal to zero and return no lines
> REM should return one line and no error ???
> REM so Oracle doesn't comply to basic sql standard
>

I don't understand. Are you saying that this returns 1476? I just tried it with a supported version of the database (10gR2) and got the following:

SQL> l
  1 select nmbr from Numbers where nmbr not in   2 (select 1/value from IntNumbers Where Kind='POSITIVE INT' or   3* Kind='NEGATIVE INT')
SQL> /       NMBR


        .5

SQL> (Perhaps you should move up to a supported version if you still find a problem. There are reasons why the old versions are unsupported.)

-- 
Hans Forbrich                           
Canada-wide Oracle training and consulting
mailto: Fuzzy.GreyBeard_at_gmail.com   
*** Top posting guarantees I will not respond further ***
Received on Thu Nov 03 2005 - 09:45:51 CST

Original text of this message

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