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 and sort the results by salary in descending order?
SELECT Employee.name, Employee.salary WHERE Employee.salary SORT BY Employee.salary DESC;
SELECT name, salary FROM Employee SORT BY salary DESC WHERE salary ;
SELECT name, salary FROM Employee WHERE salary SORT BY salary ASC;
SELECT name, salary FROM Employee WHERE salary ORDER BY salary DESC;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
