Oracle PLSQL Human Resource Salary Process in Oracle Apex

 CREATE TABLE SALARY AND ADD THESE COLUMNS :

MON,
BONUS_PERC,
BONUS_AMOUNT,
TOTAL

Process :

delete from salary where mon=:P21_YR||:P21_MON;
INSERT INTO SALARY
(EMPNO,ENAME,JOB,MGR,HIREDATE,SAL,COMM,DEPTNO,GENDER,MON,
BONUS_PERC,
BONUS_AMOUNT,
TOTAL)
SELECT
EMPNO,ENAME,JOB,MGR,HIREDATE,NVL(SAL,0),NVL(COMM,0),DEPTNO,GENDER,:P21_YR||:P21_MON,NVL(:P21_BONUS_PERC,0),NVL(:P21_BONUS_PERC*SAL/100,0),NVL(SAL,0)+NVL(COMM,0)+NVL(:P21_BONUS_PERC,0)*NVL(SAL,0)/100  FROM EMP;



Muhammad Abdullah Al Noor

Muhammad Abdullah Al Noor, An Oracle Apex Consultants and founder of Noors Technology (www.noorstech.com). Core Expertise : Database Administration, Oracle Forms and Reports Development, Oracle Apex Application Designer and Development, Linux Professional etc. Also the owner of TrainerBD Training and OraDemy E-Learning. WhatsApp +8801790721177

Post a Comment

Previous Post Next Post