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 -> ORA-00923

ORA-00923

From: Wojtek <dnc_at_o2.pl>
Date: 28 Feb 2003 14:23:11 -0800
Message-ID: <75ef5c40.0302281423.18fdc268@posting.google.com>


Hi
I put those ( (1) and (2) ) in my SQL*Plus: Release 8.0.4.0.0 and I got error:
ORA-00923: FROM keyword not found where expected

(1) SELECT mgr, ename, sal,MAX(sal) OVER (PARTITION BY mgr) AS mgr_max
FROM emp;

(2) SELECT mgr, ename, sal FROM (SELECT mgr, ename, sal,

      MAX(sal) OVER (PARTITION BY mgr) AS rmax_sal
      FROM emp)
      WHERE sal = rmax_sal;

(1) and (2) are from Oracle documentation for 8.1.7, I'm using Oracle
8.0.4. Is it the cause why it doesn't work properly ?

Thanks for any answers Received on Fri Feb 28 2003 - 16:23:11 CST

Original text of this message

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