← SQL Operations Cases

Lesson 4 of 4

Diagnose duplicate customer keys

Find shared nonblank emails without deleting records.

Do the work

  1. Two customer IDs may share an email.
  2. Exclude NULL and empty text from this diagnostic.
  3. Report the duplicate key and its count.

See the method

Avery and Morgan share team@example.test.

Practice independently

Take it further

A shared email can be legitimate; flag it for review instead of merging automatically.