engineering computer science MCQ #734

Which SQL query retrieves the names of employees with a salary greater than 50000?

engineering computer science MCQ #734

  1. Question 1

    Q1. Which SQL query retrieves the names of employees with a salary greater than 50000?

    • A) SELECT name FROM employees WHERE salary > 50000
    • B) SELECT * FROM employees WHERE salary > 50000
    • C) SELECT name FROM employees
    • D) SELECT salary FROM employees WHERE name > 50000

    Answer: SELECT name FROM employees WHERE salary > 50000

    Explanation: The SQL query 'SELECT name FROM employees WHERE salary > 50000' retrieves the names of employees with a salary greater than 50000, using a WHERE clause to filter data.