Hello Oracle Experts,
I'm wondering why my "analytics" line inside a "cursor" in Oracle Forms generates an error. This is how it's written:
CURSOR READ_C1_REC IS
SELECT DISTINCT MACH, TCODE,
COUNT(ALL TRANS_NO) OVER (PARTITION BY MACH,
TCODE ORDER BY MACH, TCODE) TOTALPERMACHPERTCODE
FROM
(
SELECT ....
)
ORDER BY MACH, TCODE;
C1_REC READ_C1_REC%ROWTYPE;
...and this is the error message during compilation:
Error 103 at line 17, column 29
Encountered the symbol "(" when expecting one of the following:
, from
..and the error points to the part after the word "OVER" in the analytics.
What could be wrong with my code? Is analytics allowed inside a "cursor"?
:)