Database Management
Accenture Technical PrimermediumDatabase ManagementSelect Statement

Select the suitable option for retrieving all the employees whose salary range is between 40000 and 100000?

Answer options

A
SELECT name, salary FROM employee WHERE salary >= 40000 AND salary <= 100000;
B
SELECT * FROM employee WHERE salary BETWEEN 40001 AND 99999;
C
SELECT * FROM employee WHERE salary > 40000 AND salary < 100000;
D
SELECT name FROM employee WHERE salary = 40000 OR salary = 100000;

Correct answer: SELECT name, salary FROM employee WHERE salary >= 40000 AND salary <= 100000;

Explanation

Quick AnswerThe correct answer is SELECT name, salary FROM employee WHERE salary >= 40000 AND salary <= 100000; because it directly addresses the core logic of Database Management.

Using >= and <= correctly captures the inclusive range 40000–100000.

Related Accenture Database Management questions

Practice more Accenture Database Management questions

PrimerPrep has 1400+ practice questions, 2026 simulations and coding hands-on — all free.

Watch Walkthroughs!