PracHub
QuestionsPremiumLearningGuidesInterview PrepCoaches
|Home/Data Manipulation (SQL/Python)/LinkedIn

Determine Final Notification Status

Last updated: Mar 29, 2026

Quick Overview

This question evaluates temporal data manipulation, state reconstruction from event logs, and handling data completeness and edge cases within the Data Manipulation (SQL/Python) domain.

  • medium
  • LinkedIn
  • Data Manipulation (SQL/Python)
  • Data Scientist

Determine Final Notification Status

Company: LinkedIn

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Technical Screen

You are given two tables that describe LinkedIn members' push-notification settings. `status(member_id INT, status VARCHAR)` - Contains each member's latest notification setting as of `2020-01-31`. - `status` is either `'on'` or `'off'`. `actions(member_id INT, action_date DATE, action VARCHAR)` - Contains all notification-toggle actions taken during February 2020. - `action` is either `'turn_on'` or `'turn_off'`. - Assume all dates are UTC calendar dates. - Assume a member can perform at most one action per day. Tasks: 1. Compute each member's current notification status as of `2020-02-29`. 2. Include members who appear only in `status`, members who appear only in `actions` (for example, new members), and members who appear in both tables. 3. If a member has multiple February actions, the latest action in February determines the final status. 4. Follow-up: if `actions` did not have `action_date`, explain whether the final status could still be reconstructed and what additional data or table design would be required. Required output: - `member_id, current_status`

Quick Answer: This question evaluates temporal data manipulation, state reconstruction from event logs, and handling data completeness and edge cases within the Data Manipulation (SQL/Python) domain.

Related Interview Questions

  • Write SQL for rankings, state, and aggregations - LinkedIn (easy)
  • Analyze member video posting behavior by country - LinkedIn (easy)
  • Compute article-type diversity per user and histogram - LinkedIn (easy)
  • Compute each member’s current notification status - LinkedIn (easy)
  • Find top countries by population per continent - LinkedIn (easy)
LinkedIn logo
LinkedIn
Aug 3, 2025, 12:00 AM
Data Scientist
Technical Screen
Data Manipulation (SQL/Python)
5
0

You are given two tables that describe LinkedIn members' push-notification settings.

status(member_id INT, status VARCHAR)

  • Contains each member's latest notification setting as of 2020-01-31 .
  • status is either 'on' or 'off' .

actions(member_id INT, action_date DATE, action VARCHAR)

  • Contains all notification-toggle actions taken during February 2020.
  • action is either 'turn_on' or 'turn_off' .
  • Assume all dates are UTC calendar dates.
  • Assume a member can perform at most one action per day.

Tasks:

  1. Compute each member's current notification status as of 2020-02-29 .
  2. Include members who appear only in status , members who appear only in actions (for example, new members), and members who appear in both tables.
  3. If a member has multiple February actions, the latest action in February determines the final status.
  4. Follow-up: if actions did not have action_date , explain whether the final status could still be reconstructed and what additional data or table design would be required.

Required output:

  • member_id, current_status

Comments (0)

Sign in to leave a comment

Loading comments...

Browse More Questions

More Data Manipulation (SQL/Python)•More LinkedIn•More Data Scientist•LinkedIn Data Scientist•LinkedIn Data Manipulation (SQL/Python)•Data Scientist Data Manipulation (SQL/Python)
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.