Error running SQL statement [message #84567] |
Wed, 31 March 2004 02:52 |
Krshanu
Messages: 10 Registered: September 2002
|
Junior Member |
|
|
Hi,
I have a SQL which is running perfectly fine in SQL*Plus.But when I am opening a cursor using the same SQL it is giving syntax problem.The following parts
in the SQL are giving problems
SELECT
...
LEAD (A.Present_Reading) OVER
(PARTITION BY A.Mchn_Code,A.Prod_Shift
ORDER BY A.Prod_Date DESC) Previous_Reading,
RANK () OVER
(PARTITION BY A.Mchn_Code,A.Prod_Shift
ORDER BY A.Prod_Date Desc) Rk,
...
Is the above functions and partitioning used in SQL are not supported in Forms? I am using Developer2000 Forms6,Oracle 8i on AIX.
Pls. help
Thanks
|
|
|
|