| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> c.d.o.misc -> PL/SQL question
I have a pl/sql script that works...except it seems to repeat the last
result twice:
I have table A with 2 entries....I use my pl/sql script to send altered results to table B. But when I check table B, I see that there is three results instead of 2.
Table A
EMPLO_ID NUM_MILES
---------- ----------
20029 1758
20030 358
Table B
EMPLO_ID AMOUNT
---------- ----------
20029 281.28
20030 57.28
20030 57.28
And here is the script is am using....
DECLARE
CURSOR c_MILEAGE_CAL IS
SELECT EMPLO_ID, NUM_MILES, MIL_ALLOWANCE, ENTRY_DATE, DESCR
FROM MILE_LOG;
V_EMPLOID MILE_LOG.EMPLO_ID%TYPE; V_NUM_MILES MILE_LOG.NUM_MILES%TYPE; V_CENTSPERMILE MILE_LOG.MIL_ALLOWANCE%TYPE; V_DATE DATE; V_DESCR MILE_LOG.DESCR%TYPE; V_REFUND NUMBER(8,2);
![]() |
![]() |