Loading...

Users With and Without Ad Clicks

A hard SQL interview practice problem on DataDriven. Write and execute real sql code with instant grading.

Domain
SQL
Difficulty
hard
Seniority
mid

Problem

Count users who received at least one ad click versus those who did not. A user counts as clicked if they have any clicked ad impression. Show each group (has click or not) and its user count.

Practice This Problem

Solve this SQL problem with real code execution. DataDriven runs your SQL queries against a live PostgreSQL database and grades it instantly.