Skip to main content
SQL • LESSON 44

OR Conditions

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

Intermediate2 Minutes570 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