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
Capital One logo
Capital One
Easy
Data ScientistSenior+ Locked

Clean and Merge Housing Data

This question evaluates data cleaning, type coercion, robust merge operations, and missing-data imputation skills within tabular datasets, emphasizing...

Data Manipulation (SQL/Python)
2
0
47 people solved
Feb 28, 2026
Intuit logo
Intuit
Medium
Data Scientist

Calculate Cohort Retention

You are given two tables: users - user_id BIGINT PRIMARY KEY - signup_ts TIMESTAMP user_events - user_id BIGINT - event_ts TIMESTAMP - event_name VARC...

Data Manipulation (SQL/Python)
19
0
182 people solved
Feb 23, 2026
Meta logo
Meta
Medium
Data Scientist

Analyze spend cohort and source shifts

You work on an ads platform. Assume all timestamps are in UTC. Interpret last year as calendar year 2023 and this year as calendar year 2024. Tables: ...

Data Manipulation (SQL/Python)
11
2
80 people solved
Feb 23, 2026
Meta logo
Meta
Medium
Data Scientist Locked

Find least active countries

This question evaluates proficiency in SQL-based data manipulation and analytics, focusing on time-based filtering, distinct aggregation, grouping, th...

Data Manipulation (SQL/Python)
4
1
42 people solved
Feb 22, 2026
Notion logo
Notion
Easy
Data Scientist

Analyze document collaboration from CSV logs

You are given two CSV files exported from a document collaboration product. Data 1) doc_access.csv Each row represents a user accessing (viewing/editi...

Data Manipulation (SQL/Python)
1
0
17 people solved
Feb 17, 2026
Meta logo
Meta
Easy
Data Scientist Locked

Convert multi-currency revenue to USD totals

This question evaluates a candidate's competency in converting multi-currency revenue into USD totals by aligning event dates with FX rates, handling ...

Data Manipulation (SQL/Python)
4
0
47 people solved
Feb 16, 2026
Meta logo
Meta
Medium
Data Scientist Locked

Write SQL for seller and category metrics

This question evaluates proficiency in SQL data manipulation—principally joins, aggregations, grouping, filtering, date arithmetic, and safe handling ...

Data Manipulation (SQL/Python)
5
1
34 people solved
Feb 15, 2026
Meta logo
Meta
Easy
Data Scientist

Compute multi-account user distribution and unread pct

You are working on a product where a user can have multiple accounts, and each account can receive notifications. Tables Assume the following schemas:...

Data Manipulation (SQL/Python)
4
0
36 people solved
Feb 3, 2026
LinkedIn logo
LinkedIn
Easy
Data Scientist

Compute article-type diversity per user and histogram

You track article views and article metadata. Tables article_views - user_id INT - article_id INT - view_date DATE articles - article_id INT (PK) - ar...

Data Manipulation (SQL/Python)
5
0
40 people solved
Feb 1, 2026
LinkedIn logo
LinkedIn
Easy
Data Scientist

Find top countries by population per continent

Table world_population - continent VARCHAR - country VARCHAR - population BIGINT Assume each row is a country’s latest population and (continent, coun...

Data Manipulation (SQL/Python)
4
0
64 people solved
Feb 1, 2026
Point72 logo
Point72
Hard
Data Scientist Locked

Build the auction status table

This question evaluates SQL data manipulation skills and relational querying competencies, including joins, aggregations, NULL handling, and identifyi...

Data Manipulation (SQL/Python)
1
0
23 people solved
Jan 20, 2026
Meta logo
Meta
Easy
Data Scientist

Compute ads revenue by geography in SQL

You have ad delivery logs for a shop-ads system. Tables ad_impressions - impression_id STRING (PK) - ts TIMESTAMP (UTC) - user_id STRING - shop_id STR...

Data Manipulation (SQL/Python)
29
5
208 people solved
Jan 17, 2026
Plymouth Rock Assurance Corporation logo
Plymouth Rock Assurance Corporation
Medium
Data ScientistIntern

Calculate Ultimate Loss by Policy Term

You work with insurance policy-term loss data. For a given policy term, its ultimate loss is defined as the sum of losses from the current term and al...

Data Manipulation (SQL/Python)
0
0
6 people solved
Jan 3, 2026
Meta logo
Meta
Medium
Data Scientist

Write SQL for CTR and revenue

Write SQL for the following two tasks. Problem 1: CTR during peak vs. non-peak hours You are given three tables: - ads(ad_id BIGINT, advertiser_id BIG...

Data Manipulation (SQL/Python)
6
1
42 people solved
Jan 3, 2026
Roblox logo
Roblox
Easy
Data ScientistSenior+

Write SQL for influence score and follower growth

You are working on a social product with these tables: Tables / Schemas users - user_id BIGINT (PK) - created_at TIMESTAMP posts - post_id BIGINT (PK)...

Data Manipulation (SQL/Python)
10
0
147 people solved
Dec 11, 2025
Databricks logo
Databricks
Easy
Data ScientistIntern

Find top-5 most similar rows across datasets

You can solve this in SQL or Python. You are given two datasets with the same feature columns: Tables target_rows (rows you want to match) - target_id...

Data Manipulation (SQL/Python)
2
0
23 people solved
Dec 11, 2025
Meta logo
Meta
Easy
Data Scientist

Compute active ad revenue by creation source

You work on an ads platform and need to report active ad revenue broken down by the ad’s creation source. Tables ads - ad_id BIGINT PK - advertiser_id...

Data Manipulation (SQL/Python)
3
0
27 people solved
Dec 6, 2025
TikTok logo
TikTok
Easy
Data Scientist

Write monthly customer and sales SQL queries

You are analyzing a food-delivery marketplace. Tables Assume the following schema (you may add minor helper CTEs as needed): orders - order_id (BIGINT...

Data Manipulation (SQL/Python)
6
4
84 people solved
Nov 27, 2025
Bytedance logo
Bytedance
Medium
Data Scientist

Find top-paid employee per department

Given the following tables: 1) employees - employee_id INT PRIMARY KEY - employee_name VARCHAR 2) employee_department - employee_id INT - department_i...

Data Manipulation (SQL/Python)
4
0
39 people solved
Nov 12, 2025
Intuit logo
Intuit
Easy
Data Scientist

Pivot daily users and revenue by platform

You are given transaction-level data and need daily aggregates by platform. Input (Pandas DataFrame) df with columns: - file_date (DATE or string pars...

Data Manipulation (SQL/Python)
20
0
161 people solved
Nov 8, 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