by AskAI

Solutions:

Check these solutions from our community and artificial intelligence:
The solution above is optimal because it uses a subquery to find the average salary of all employees, and then uses that value to filter the employees table.