Find the average salary for each year sql code example
Example: find below average salary in sql
SELECT first_name, salary FROM employees
WHERE salary <= (SELECT AVG(salary) FROM employees);
SELECT first_name, salary FROM employees
WHERE salary <= (SELECT AVG(salary) FROM employees);