Answers for "between vs in sql"

SQL
1

between vs in sql

• BETWEEN operator is used to display
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 BETWEEN:
SELECT * FROM students
WHERE ROLL_NO IN (8,15,25);
Posted by: Guest on January-28-2021
0

between sql

Select * From employees
Where salary >= 4000
And salary  <= 6000

We can also use between

Select * From employees
Where salary BETWEEN 4000 AND 6000
Posted by: Guest on January-27-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language