PracHub
QuestionsPremiumLearningGuidesInterview PrepNEWCoaches

Quick Overview

This question evaluates SQL-focused data manipulation skills and analytical competency in cohort definition and metric selection for comparing behavioral propensities, specifically assessing how to measure the likelihood of old versus new users switching a shop profile to invisible.

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

Determine Old vs. New Users' Shop Visibility Changes

Company: Meta

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Onsite

SHOP_VISIBILITY_HISTORY +----------+----------------+---------------------+-------------------+---------+ | user_id | user_signup_dt | action_timestamp | visibility_status | shop_id | +----------+----------------+---------------------+-------------------+---------+ | 101 | 2020-03-10 | 2023-07-01 10:04:11 | invisible | 555 | | 102 | 2023-06-20 | 2023-07-02 08:22:37 | visible | 556 | | 103 | 2021-11-05 | 2023-07-01 14:15:02 | invisible | 557 | | 104 | 2023-07-01 | 2023-07-02 16:45:09 | invisible | 555 | | 105 | 2020-01-18 | 2023-07-03 09:30:00 | visible | 558 | +----------+----------------+---------------------+-------------------+---------+ ##### Scenario E-commerce platform wants to know whether existing users are more likely than newly registered users to set a shop profile to invisible. ##### Question Given historical shop visibility actions, write a SQL query that computes a metric of your choice that compares the propensity of old users versus new users to switch a shop profile to invisible. Briefly justify why the metric you chose is appropriate. ##### Hints Define "old" vs "new" users, then calculate the proportion of invisible actions per group.

Quick Answer: This question evaluates SQL-focused data manipulation skills and analytical competency in cohort definition and metric selection for comparing behavioral propensities, specifically assessing how to measure the likelihood of old versus new users switching a shop profile to invisible.

Last updated: Mar 29, 2026

Loading coding console...

PracHub

Master your tech interviews with 7,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)