Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions