📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

Which statement finds employees whose salary is 30000, 40000 or 50000?

A. SELECT * FROM Employees WHERE Salary BETWEEN 30000 AND 50000
B. SELECT * FROM Employees WHERE Salary LIKE 30000
C. SELECT * FROM Employees WHERE Salary IN (30000, 40000, 50000) ✅
D. SELECT * FROM Employees WHERE Salary = 30000, 40000, 50000

Correct Answer: C. SELECT * FROM Employees WHERE Salary IN (30000, 40000, 50000)

Explanation

IN lists the exact values to match, which is shorter than three OR conditions.