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

Analyze video posting activity

Last updated: Mar 29, 2026

Quick Overview

This question evaluates data manipulation skills such as joins, date comparisons, conditional grouping, and aggregation to compute member- and country-level metrics from relational tables within the Data Manipulation (SQL/Python) domain.

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

Analyze video posting activity

Company: LinkedIn

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: medium

Interview Round: Technical Screen

You are given two tables about members and video uploads. Table 1: `video_posts` - `post_date` DATE — UTC calendar date of the upload - `member_id` INT - `video_length_seconds` INT Table 2: `members` - `member_id` INT - `country` STRING - `join_date` DATE — UTC calendar date when the member joined Relationship: - `video_posts.member_id = members.member_id` Assumptions: - Each row in `video_posts` represents one uploaded video. - Dates are compared as UTC calendar dates. - If a member uploaded multiple videos on their earliest upload date, that date is still considered the member's first video date. Write SQL (and optionally Python for part 2) for the following: 1. How many members posted their first-ever video on the same calendar date that they joined the platform? - Output column: `members_first_video_on_join_date` 2. Compare total uploaded videos by US members versus non-US members. - Define `member_region = 'US'` when `country = 'usa'`, otherwise `member_region = 'Non-US'` - Output columns: `member_region, total_video_posts` 3. For each country, count how many distinct members have posted at least one video longer than 60 seconds. - Output columns: `country, members_with_video_over_60s`

Quick Answer: This question evaluates data manipulation skills such as joins, date comparisons, conditional grouping, and aggregation to compute member- and country-level metrics from relational tables 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
Jul 20, 2025, 12:00 AM
Data Scientist
Technical Screen
Data Manipulation (SQL/Python)
3
0

You are given two tables about members and video uploads.

Table 1: video_posts

  • post_date DATE — UTC calendar date of the upload
  • member_id INT
  • video_length_seconds INT

Table 2: members

  • member_id INT
  • country STRING
  • join_date DATE — UTC calendar date when the member joined

Relationship:

  • video_posts.member_id = members.member_id

Assumptions:

  • Each row in video_posts represents one uploaded video.
  • Dates are compared as UTC calendar dates.
  • If a member uploaded multiple videos on their earliest upload date, that date is still considered the member's first video date.

Write SQL (and optionally Python for part 2) for the following:

  1. How many members posted their first-ever video on the same calendar date that they joined the platform?
    • Output column: members_first_video_on_join_date
  2. Compare total uploaded videos by US members versus non-US members.
    • Define member_region = 'US' when country = 'usa' , otherwise member_region = 'Non-US'
    • Output columns: member_region, total_video_posts
  3. For each country, count how many distinct members have posted at least one video longer than 60 seconds.
    • Output columns: country, members_with_video_over_60s

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.