Skip to main content
SQL โ€ข LESSON 118

IS NOT NULL

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

Advancedโฑ 3 Minutesโญ 1310 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