Aug 04, 2020 10:52 am
Difference between "BETWEEN and "IN"
1 Reply
Aug 05, 2020 5:12 am
BETWEEN operator is used to displaying rows based on a range of values in a row whereas the IN condition operator is used to check for values contained in a specific set of values.
Example of BETWEEN:
SELECT * FROM Students where ROLL_NO BETWEEN 10 AND 50;
Example of IN:
SELECT * FROM students where ROLL_NO IN (8,15,25);