Guest_imported
New member
- Jan 1, 1970
- 0
Hi,
We recently upgraded to 8i and I have a written a query that uses one of the new analytic functions to show cumulative Dollars... a simple example would be:
Select ename,sal,
SUM(sal) OVER (ORDER BY ename RANGE UNBOUNDED PRECEDING) I_csum
FROM emp;
This works great as a query, but when I try to use this query as a select in a stored procedure, I get error that says the open parenthesis after ther word OVER was unexpected...
Anyone have any idea why???
We recently upgraded to 8i and I have a written a query that uses one of the new analytic functions to show cumulative Dollars... a simple example would be:
Select ename,sal,
SUM(sal) OVER (ORDER BY ename RANGE UNBOUNDED PRECEDING) I_csum
FROM emp;
This works great as a query, but when I try to use this query as a select in a stored procedure, I get error that says the open parenthesis after ther word OVER was unexpected...
Anyone have any idea why???