Write a MySQL query to select students with less than 50% marks
The examples use the students table from our MySQL tutorial: id, name, city, marks, course_id.
SELECT * FROM students WHERE marks < 50;
Tutorials Class - Output Window
| id | name | city | marks | course_id |
|---|---|---|---|---|
| 6 | Neha | Mumbai | 45 | 2 |
If the marks are out of 100, then marks below 50 are below 50 percent. Use <= to include 50. See MySQL WHERE.
Learn more about the similar topics:
| Tutorials |
|---|
| No Content Found. |
| Exercises & Assignments |
|---|
| No Content Found. |
| Interview Questions & Answers |
|---|
| No Content Found. |