PL/SQL Fundamentals Exercises: Calculate the incentive of an employee whose ID is 110
PL/SQL Fundamentals: Exercise-1 with Solution
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; /
Incentive = 984 Statement processed. 0.00 seconds
Improve this sample solution and post your code through Disqus
What is the difficulty level of this exercise?
- New Content published on w3resource :
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework