Loading...

Search Term Length vs Click Rates

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

Domain
SQL
Difficulty
hard
Seniority
mid

Problem

The search relevance team wants to know whether longer queries lead to more clicks. For each unique search term length, show the total number of queries and how many had a clicked result, listed by length.

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.