Multiple choice

Write a query to retrieve all the students details whose id's starting from 1001 to 1050.

  1. SELECT * FROM STUDENTS WHERE STUDENT_ID BETWEEN 1001 AND 1050

  2. SELECT * FROM STUDENTS WHERE STUDENT_ID >= 1001 AND STUDENT_ID <= 1050

  3. SELECT * FROM STUDENTS WHERE STUDENT_ID > 1001 AND STUDENT_ID < 1050

  4. Both option 1 and option 2 are correct.

  5. None of the options are correct

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Yes, this is the correct answer.