DataDriven
LearnPracticeInterviewDiscussDailyJobs

Who Stayed

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

Domain
SQL
Difficulty
hard
Seniority
L5

Problem

We run periodic health checks across a fleet of services, and every check records the region it ran in. For December 2025 and January 2026, we want to know how much of each service's regional footprint holds up: of the regions a service was checked in during the month, what share get checked again for that same service in some later month. Return the service, the month, and that share as a percentage, treating a month whose regions never reappear as zero.

Summary

A footprint either holds or it slips away. Find how much stays.

Practice This Problem

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

Related

  • All Practice Problems
  • Mock Interview Mode
  • SQL Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons