1#The BETWEEN operator selects a range of data between two values. The values can be numbers,
2#text, or dates.
3syntax->SELECT column_name(s)
4FROM table_name
5WHERE column_name
6BETWEEN value1 AND value2
7///example///
8SELECT * FROM Persons
9WHERE LastName
10BETWEEN 'Hansen' AND 'Pettersen'
1Select * From employees
2Where salary >= 4000
3And salary <= 6000
4
5We can also use between
6
7Select * From employees
8Where salary BETWEEN 4000 AND 6000
1(Between) operator same as ">= <="
2For example:
3Select * From Employees Where salary Between 4000 AND 6000;
4