The Trouble with Null

Talk it through with a coach who asks guiding questions and gives hints until you reach the answer. Pass to mark the challenge as completed.

The problem

  • medium
  • Pro

A query for users whose referral code is not equal to a particular value unexpectedly leaves out users with no referral code at all. Explain how null behaves in comparisons and how you'd fix the query.

Talk this problem through with an AI coach

This is a Pro challenge. Sign in with Google, then upgrade to start a voice session.

Start free →