Skip to main content
SQL • LESSON 118

IS NOT NULL

How can we return only employees who have an assigned manager?

Advanced3 Minutes1310 XP
🤔 THE QUESTION

How can we return only employees who have an assigned manager?

💡 WHAT IS IT?

IS NOT NULL filters for rows with populated, non-missing data.

🎯 WHAT IS IT USED FOR?

Valid record processing, verified user rosters, assigned task analysis.

💻 EXAMPLE
SELECT name
FROM employees
WHERE manager_id IS NOT NULL;

🎯 Mission Objectives

Practice typing production-grade SQL code for IS NOT NULL.

  • IS NOT NULL
  • Non-null filtering
  • Populated fields
  • Clean datasets