Write an SQL query to retrieve the names of employees whose salary is greater than 50000.

Last Updated :
Discuss
Comments

Write an SQL query to retrieve the names of employees whose salary is greater than 50000.

SELECT name FROM employees HAVING salary > 50000;

SELECT name FROM employees WHERE salary > 50000;

SELECT name FROM employees WHERE salary > '50000';

SELECT name FROM employees GROUP BY salary HAVING salary > 50000;

Share your thoughts in the comments