I'm trying to increase the employee salaries by 50% for all employees except those currently earning the highest salary:
UPDATE employees
SET emp_salary= emp_salary + (emp_salary * 50)/100
GROUP BY emp_salary
HAVING emp_salary < (select max(emp_salary) from employees);
But I get this error: ERROR: syntax error at or near "GROUP" LINE 3: GROUP BY emp_salary
Thank you!