ORACLE stored procedure doesn't compile -


I am struggling on this question, and can not understand that Oracle does not compile the following stored procedure, Error: PL / SQL: ORA-200933: There are incorrect indications of SQL Terminates, of which, with 'Storico_DependantAANG',

Thanks in advance

Paolo

 Create or change  PROCEDURE AVERAGE_VRE (p_refDate on DATE, p_level in VARCHAR2) / * Process name: AVERAGE_VRE Author: Paolo UR. Ini Date: 21 January 2015 Description: This process is calculated to put the average amount of Peralol table in PAYROLL_CALCOLATO table. The assumption is that every wage type is equally divided by all the active employees * / IS FTE Decimal (8,3): = 0; Select the amount in the FTE (percentage-part time) from STORCO_dipendente where TRUNC (data_inizio_variazione) & lt; = P_refDate and TRUNC (data_fine_variazione) & gt; = P_refDate and flag_status = 1; Choose INSERT in pAYROLL_CALCOLATO (MATRICOLA, DATA_PY, IMPORTO, ID_CODICE_VOCE, TM_INS, TM_UPD, ID_GRUPPO_DATI) as anag.MATRICOLA, voci.DATA_PY, (voci.sumImporto / FTE), voci.ID_CODICE_VOCE, SYSDATE, SYSDATE, 2 to storico_dipendente as anag, ( Import from SADDOPI, ID_CODICE_VOCE, Zodiac (IMPORTO_PY) PEMARALAL TRANSIC (DATA_PY) = P_refDate Group DATA_PY, ID_CODICE_VOCE) where TRUNC (data_inizio_variazione) & lt; = P_refDate and TRUNC (data_fine_variazione) & gt; = P_refDate and flag_status = 1 and Cod_livello = p_level; END AVERAGE_VRE;  

Remove "AS" from two table / sub-aliases, although Oracle will give you the column nickname Allows access to AS, this table is not a valid syntax for aliens.


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -