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
MySQL SELECT Statement
MySQL WHERE Clause
MySQL AND, OR and NOT
MySQL ORDER BY
MySQL LIMIT
MySQL DISTINCT
MySQL LIKE and Wildcards
Exercises & Assignments
Write a query to get data of selected columns from a table
Write a query to select the student with the maximum marks
Write a query to select top 3 students by marks
Write a query to select the rows if a column has no value
Write a query to find the names of students that begin with ‘A’
Write a query to fetch the top 2 records
Interview Questions & Answers
How to select Top 10 records in MySQL?
Write a MySQL query to select students with less than 50% marks
Write a MySQL query to select students with marks between 70 and 80
Write a query to fetch top N records
Write a query to find the names of employees that begin with ‘S’
Write a query to select if column has no/empty value
What is NULL in MySQL? Is NULL the same as 0 or an empty string?