# Upvote Percentage by Age Cohort

> New users versus existing. The upvote gap.

Canonical URL: <https://datadriven.io/problems/upvote_percentage_by_age_cohort>

Domain: SQL · Difficulty: hard · Seniority: L5

## Problem

The search team is comparing search success between brand-new and tenured users. A user counts as 'new' if their signup is within 30 days of the most recent signup on file; everyone else is 'existing'. A search counts as successful when the user clicked through to a result. For each segment, show the segment label, total searches, successful searches, and the success rate as a decimal. Sort alphabetically by segment.

## Related

- [All practice problems](https://datadriven.io/problems)
- [Mock interview mode](https://datadriven.io/interview/upvote_percentage_by_age_cohort)
- [SQL Interview Questions](https://datadriven.io/sql-interview-questions)
- [Data Engineering Interview Prep Guide](https://datadriven.io/data-engineer-interview-prep)
- [Daily Challenge](https://datadriven.io/daily)

---

Source: DataDriven (https://datadriven.io). 100% free data engineering interview prep. Live code execution against Postgres 16, Python 3.11, and Spark sandboxes. No paywall, no premium tier, no signup gate.