Skip to main content
SQL โ€ข LESSON 44

OR Conditions

How can we return employees who satisfy either of two conditions?

Intermediateโฑ 2 Minutesโญ 570 XP
๐Ÿค” THE QUESTION

How can we return employees who satisfy either of two conditions?

๐Ÿ’ก WHAT IS IT?

The OR operator returns a row if at least one of the connected conditions evaluates to true.

๐ŸŽฏ WHAT IS IT USED FOR?

Matching multiple departments, broad customer segment querying, multi-status monitoring.

๐Ÿ’ป EXAMPLE
SELECT name, department
FROM employees
WHERE department = 'Engineering'
OR department = 'Analytics';

๐ŸŽฏ Mission Objectives

Practice typing production-grade SQL code for OR Conditions.

  • โœ“ OR operator
  • โœ“ Inclusive filtering
  • โœ“ Department selection
  • โœ“ Query logic