Write a MySQL Query to select students with marks between 70 and 80

Description:

Table name is “student” and You need to select all students where marks are between 70 and 80%.

idstudent_namemarks
1Amit46
2Tome78
3Robin59
4Rocky40
5Tonny55

Solution/Query:

MySQL BETWEEN Operator is used to specify range of values in condition.

SELECT * FROM student WHERE marks BETWEEN 70 and 80

Learn more about the similar topics:
Tutorials
No Content Found.
Exercises & Assignments
No Content Found.
Interview Questions & Answers
No Content Found.