PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches
|Home/Data Manipulation (SQL/Python)/LinkedIn

Analyze member video posting behavior by country

Last updated: Mar 29, 2026

Quick Overview

This question evaluates a data scientist's data manipulation skills, covering SQL/Python competencies such as joins, aggregations, deduplication, tie-breaking for first-event identification, and group-level filtering by country.

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

Analyze member video posting behavior by country

Company: LinkedIn

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: easy

Interview Round: Technical Screen

You are given member profile data and video posting events. ### Tables `members` - `memberid` INT (PK) - `country` VARCHAR - `join_date` DATE `video_posts` - `post_date` DATE - `memberid` INT (FK → `members.memberid`) - `video_length` INT — seconds Assumptions: - A member may post multiple videos on different dates. ### Tasks A) How many members posted their **first-ever** video on the **same calendar day** they joined? - Output: a single row with `members_first_video_same_day`. C) For each country, how many **distinct members** have posted **at least one** video longer than 60 seconds? - Output columns: `country`, `num_members_over_60s`. ### Notes - For “first-ever video”, define the first post as the **minimum `post_date`** per member; break ties using the smallest `video_length` (or state an alternative tie-break).

Quick Answer: This question evaluates a data scientist's data manipulation skills, covering SQL/Python competencies such as joins, aggregations, deduplication, tie-breaking for first-event identification, and group-level filtering by country.

Related Interview Questions

  • Write SQL for rankings, state, and aggregations - 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)
  • Count Article Types Viewed - LinkedIn (medium)
LinkedIn logo
LinkedIn
Feb 1, 2026, 5:10 AM
Data Scientist
Technical Screen
Data Manipulation (SQL/Python)
3
0

You are given member profile data and video posting events.

Tables

members

  • memberid INT (PK)
  • country VARCHAR
  • join_date DATE

video_posts

  • post_date DATE
  • memberid INT (FK → members.memberid )
  • video_length INT — seconds

Assumptions:

  • A member may post multiple videos on different dates.

Tasks

A) How many members posted their first-ever video on the same calendar day they joined?

  • Output: a single row with members_first_video_same_day .

C) For each country, how many distinct members have posted at least one video longer than 60 seconds?

  • Output columns: country , num_members_over_60s .

Notes

  • For “first-ever video”, define the first post as the minimum post_date per member; break ties using the smallest video_length (or state an alternative tie-break).

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.