Skip to main content
SQL • LESSON 42

WHERE with Text Conditions

How can we find employees belonging to a specific department?

Beginner2 Minutes550 XP
🤔 THE QUESTION

How can we find employees belonging to a specific department?

💡 WHAT IS IT?

Text filtering uses single quotes around string literals to match exact text values in WHERE clauses.

🎯 WHAT IS IT USED FOR?

Department matching, status checking ('Active', 'Pending'), categorical filtering.

💻 EXAMPLE
SELECT name, department
FROM employees
WHERE department = 'Engineering';

🎯 Mission Objectives

Practice typing production-grade SQL code for WHERE with Text Conditions.

  • Text literals ('...')
  • Equality filter (=)
  • Categorical selection
  • Clean syntax