Write a PL/SQL block to calculate the incentive of an employee whose ID is 110.
The following PL/SQL block shows a veriable incentive have been declared and incentive have assigned into this variable.
DECLARE incentive NUMBER(8,2); BEGIN SELECT salary * 0.12 INTO incentive FROM employees WHERE employee_id = 110; DBMS_OUTPUT.PUT_LINE('Incentive = ' || TO_CHAR(incentive)); END; /
Sample Output:
Incentive = 984 Statement processed. 0.00 seconds
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer