w3resource logo


SQLite exercises

SQLite Exercise: Get monthly salary of each and every employee


Solution:

19. Write a query to get monthly salary (round 2 decimal places) of each and every employee?

SQLite Code :

SELECT first_name, last_name, round(salary/12,2) as 'Monthly Salary' 
FROM employees;

Sample table : employees

Sqlite Online Editor