PracHub
QuestionsPremiumCoachesLearningGuidesInterview Prep

Quick Overview

This question evaluates SQL-based data manipulation and analytics skills—specifically joins, time-window filtering, aggregation, and metric calculation for measuring user engagement and spammer read-rate—within the Data Manipulation (SQL/Python) domain.

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

Analyze User Engagement and Spammer Read-Rate in SQL

Company: Meta

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Technical Screen

messages +------------+------------+-------------+--------------+-----------+ | sender_id | receiver_id| message_id | sent_date | read_date | +------------+------------+-------------+--------------+-----------+ | 1232412 | 12342 | 124 | 2024-01-01 | 2024-01-01| | 6534354 | 423452 | 342 | 2024-01-02 | NULL | | 1234412 | 34214 | 425 | 2024-01-01 | 2024-01-05| +------------+------------+-------------+--------------+-----------+ ​ violating_scores +---------+----------------+-------------+ | user_id | violation_type | p_violating | +---------+----------------+-------------+ | 1232412 | spam | 0.4 | | 6534354 | scam | 0.9 | | 1234412 | impersonation | 0.1 | +---------+----------------+-------------+ ##### Scenario Messaging platform needs SQL analyses of user engagement and spammer behavior in the past week. ##### Question How many users received more than 10 messages in a single day during the last 7 days? What is the average read-rate for spammers over the last week? Read-rate = (read messages sent by spammers) / (all messages sent by spammers). ##### Hints Filter by last 7 days; join spammers from violating_scores; aggregate counts and ratios.

Quick Answer: This question evaluates SQL-based data manipulation and analytics skills—specifically joins, time-window filtering, aggregation, and metric calculation for measuring user engagement and spammer read-rate—within the Data Manipulation (SQL/Python) domain.

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)