HAVING
clause to filter grouped data based on aggregate functions. Retrieve departments where the average salary exceeds 50,000.employees
employee_id
, first_name
, last_name
, department
, salary
department
, average_salary
select * from employees