BETWEEN Command in SQL
BETWEEN command in SQL is used to select a values between ranges in the field itself .Suppose there is a list of students in the class. They are 60 in number and all their details are stored in the Database according to alphabetical order
Suppose if you want to see who have scored between 60 and 75
you can use this simple SQL command “SELECT * FROM STUDENTS WHERE MARK BETWEEN 60 AND 75″;
When you execute this command this command will show you list of students who have scored between 60 and 75 which includes the two values also (60 and 75)