Q:

Which of the following SQL query is correct for selecting the name of staffs from \'staffinfo\' table where salary is 10,000 or 25,000?

belongs to collection: DBMS - SQL MCQ

0

Which of the following SQL query is correct for selecting the name of staffs from 'staffinfo' table where salary is 10,000 or 25,000?


  1. SELECT name FROM staffinfo WHERE salary BETWEEN 10000 AND 25000;
  2. SELECT name FROM staffinfo WHERE salary IN (10000, 25000);
  3. Both a and b
  4. None of the above

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(b).SELECT name FROM staffinfo WHERE salary IN (10000, 25000);

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

DBMS - SQL MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
Select the right statement to insert values to the... >>
<< How to select all data from student table starting...