Question: Which SQL command uses the correct syntax to select the name and salary columns from the Employee table, where the salary is greater than 5

Which SQL command uses the correct syntax to select the name and salary columns from the Employee table, where the salary is greater than 50000, and sort the results by salary in descending order?
SELECT Employee.name, Employee.salary WHERE Employee.salary >50000 SORT BY Employee.salary DESC;
SELECT name, salary FROM Employee SORT BY salary DESC WHERE salary >50000;
SELECT name, salary FROM Employee WHERE salary >50000 SORT BY salary ASC;
SELECT name, salary FROM Employee WHERE salary >50000 ORDER BY salary DESC;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!