Data Scientist Data Manipulation (SQL/Python) Interview Questions

Practice 550 real Data Manipulation (SQL/Python) interview questions for Data Scientist roles. From companies including Meta, Amazon, TikTok, Capital One, DoorDash.

550 Questions 84 Companies08.03.2026
Showing 20 results
Role
Point72 logo
Point72
Medium
Data Scientist

Write SQL for recent customer activity

Write a single ANSI‑SQL query that produces, for every customer who has at least one non‑canceled order ever: (1) last_order_ts across all time consid...

Data Manipulation (SQL/Python)
1
0
9 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Write SQL to flag coordinated fake accounts

Assume today is 2025-09-01. Schema and tiny samples: users(user_id, created_at, country) 1 | 2025-07-01 | US 2 | 2025-08-10 | IN 3 | 2025-08-15 | US 4...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 2025
Intuit logo
Intuit
Medium
Data Scientist

Exclude free subscribers via anti-join

Extend your previous monthly new-subscriber + YoY query to exclude companies that ever received a free subscription, using an anti-join against Free_S...

Data Manipulation (SQL/Python)
0
0
4 people solved
Oct 13, 2025
Intuit logo
Intuit
Medium
Data Scientist

Compute monthly new subscribers and YoY deltas

Write a single SQL query that returns monthly counts of new subscribers starting at 2019-06, plus year-over-year (same-month prior year) comparisons. ...

Data Manipulation (SQL/Python)
0
0
5 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Compute 7-day views and reactions by relationship

Use the schemas and sample data below to answer two tasks. Assume dates are strings in 'YYYY-MM-DD'. Treat "today" as 2025-09-01; "last/past 7 days" m...

Data Manipulation (SQL/Python)
0
0
5 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Join datasets and compute conversion by assignment

You are given two CSVs. Create tables and write SQL to produce both visit-level and visitor-level conversion datasets, then aggregate conversion by as...

Data Manipulation (SQL/Python)
0
0
5 people solved
Oct 13, 2025
EY logo
EY
Medium
Data Scientist

Design logical model and consumption

Design a logical data model and consumption layer supporting business and technical services architecture. Provide an ERD‑level description for Accoun...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 2025
HBO logo
HBO
Medium
Data Scientist

Write SQL for streaming cohort metrics

Given the schema and sample data below, write SQL to answer the three tasks. Use standard SQL (window functions allowed). Assume timestamps are UTC. T...

Data Manipulation (SQL/Python)
0
0
8 people solved
Oct 13, 2025
Pinterest logo
Pinterest
Medium
Data Scientist

Aggregate video time and unique pins in Python

Part A (category by average time for videos): You receive a list of pin engagement rows and a category map. pins = [ {"pin_id": 10, "category_id": 1,...

Data Manipulation (SQL/Python)
1
0
8 people solved
Oct 13, 2025
Freddie Mac logo
Freddie Mac
Medium
Data Scientist

Assess SQL cleaning, mapping, joins, keys, and DDL/DML

You inherit a small retail analytics warehouse. Use the schema and sample rows below to answer all parts. Schema and sample data (minimal rows shown):...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 2025
Tubi logo
Tubi
Medium
Data Scientist

Compute daily net users from event logs

Given an event log, write SQL to compute, for the target date 2025‑09‑01 ("today"), the counts of new users, retained users, churn users, and net user...

Data Manipulation (SQL/Python)
0
0
6 people solved
Oct 13, 2025
Yahoo logo
Yahoo
Medium
Data Scientist

Use OrderedDict to dedupe stably

Implement dedupe_preserve_order(seq) that removes duplicates from a list while preserving the order of first appearance, in O(n) time and O(k) space (...

Data Manipulation (SQL/Python)
0
0
6 people solved
Oct 13, 2025
Yahoo logo
Yahoo
Medium
Data Scientist

Diagnose DAU drop with SQL by country

Write a single SQL query to diagnose a country-level DAU drop for an email product. Assume today is 2025-09-01. DAU is the count of distinct user_id w...

Data Manipulation (SQL/Python)
0
0
4 people solved
Oct 13, 2025
Meta logo
Meta
Medium
Data Scientist

Find the most-used app

You work on Oculus app engagement analytics. Tables user_activity - user_id (BIGINT) - date (DATE) — day of activity (assume UTC unless otherwise spec...

Data Manipulation (SQL/Python)
4
0
31 people solved
Aug 17, 2025
Citadel logo
Citadel
Medium
Data Scientist

Perform EDA and diagnose data quality

Given a tabular dataset loaded into a pandas DataFrame, write code to perform exploratory data analysis end-to-end: inspect and report column data typ...

Data Manipulation (SQL/Python)
0
0
6 people solved
Aug 8, 2025
Capital One logo
Capital One
Medium
Data Scientist

Calculate Longest Transaction Streak for Each User

transactions +---------------+---------+--------+----------------+-----------+----------+ | transaction_id| user_id | amount | transaction_date| merch...

Data Manipulation (SQL/Python)
0
0
8 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Analyze Bookstore Data to Identify Top Payment Methods

books +---------+------------+----------+-------+ | book_id | title | author_id| price | +---------+------------+----------+-------+ | 1 | ...

Data Manipulation (SQL/Python)
0
0
5 people solved
Aug 4, 2025
Shopify logo
Shopify
Medium
Data Scientist

Determine Growth of Pirated Theme Installations Over Years

merchants +-------------+------------+ | merchant_id | join_date | +-------------+------------+ | 1 | 2020-01-02 | | 2 | 2020-03-...

Data Manipulation (SQL/Python)
1
0
8 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Calculate Distinct High-View Posts and Spam View-Prevalence

content_views | user_id | post_id | view_count | view_date | | 101 | 572 | 3 | 2021-11-01 | | 102 | 732 | 5 | 2021-1...

Data Manipulation (SQL/Python)
0
1
6 people solved
Aug 4, 2025
TikTok logo
TikTok
Medium
Data Scientist

Identify Repeat Advertisers from Consecutive Weeks

SUBMISSIONS +--------------+-----------+-----------+ | advertiser_id| ad_id | week_id | +--------------+-----------+-----------+ | A123 ...

Data Manipulation (SQL/Python)
0
0
3 people solved
Aug 4, 2025

Explore more Data Scientist Data Manipulation (SQL/Python) interview questions

Real questions from candidate reports, grouped by company, topic and role.

By company
Other categories for Data Scientist
Data Manipulation (SQL/Python) questions for other roles
Browse all