Learn SQL
AND & OR
6.3
Lesson

Select using OR condition

Find all students whose age is greater than 15 or they are enrolled in the Java course or they belong to grade 7.

We can use OR operator to combine the three conditions. If one of the conditions is true then that record will be selected since we are using OR operator.