Find the average salary by year sql code example
Example 1: find below average salary in sql
SELECT first_name, salary FROM employees
WHERE salary <= (SELECT AVG(salary) FROM employees);
Example 2: average salary in sql
SELECT FIRST_NAME FROM EMPLOYEES
WHERE SALARY = (SELECT AVG(SALARY) FROM EMPLOYEES);