PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep

Quick Overview

This question evaluates proficiency in relational data manipulation and metric computation, including SQL joins, aggregation and cohort-based comparisons relevant to survey response analysis, and is categorized under Data Manipulation (SQL/Python) for a Data Scientist role.

  • Medium
  • Meta
  • Data Manipulation (SQL/Python)
  • Data Scientist

Calculate and Compare Survey Response Rates for User Tenure

Company: Meta

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Onsite

Surveys +--------+------------+--------------+----------+ | userid | date | survey_event | response | +--------+------------+--------------+----------+ | 101 | 2023-01-10 | notif_popup | 5 | | 102 | 2023-01-11 | notif_popup | 3 | | 101 | 2023-01-12 | notif_modal | 4 | +--------+------------+--------------+----------+ ​ Users +--------+------------+----------+ | userid | reg_date | country | +--------+------------+----------+ | 101 | 2022-12-20 | US | | 102 | 2023-01-05 | CA | | 103 | 2023-01-07 | US | +--------+------------+----------+ ##### Scenario Mobile app sends a post-notification survey to users; two tables (Surveys, Users) track responses and registration dates. ##### Question Write SQL to compute the overall response rate to the survey. 2. Using SQL, determine whether newer users rate notifications higher than long-tenured users. ##### Hints Join, aggregate, bucket users by tenure, compare average/median response.

Quick Answer: This question evaluates proficiency in relational data manipulation and metric computation, including SQL joins, aggregation and cohort-based comparisons relevant to survey response analysis, and is categorized under Data Manipulation (SQL/Python) for a Data Scientist role.

Last updated: Mar 29, 2026

Loading coding console...

PracHub

Master your tech interviews with 8,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.

Related Coding Questions

  • Compute ad impression conversion rates - Meta (medium)
  • Count unconnected posts and reactions - Meta (medium)
  • Count heavy callers in 7 days - Meta (medium)
  • Write SQL for call metrics - Meta (medium)
  • Write SQL for multi-account metrics - Meta (medium)