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
Meta logo
Meta
Medium
Data Scientist

Write dating profile report with final reviews

Today is 2025-09-01. You need a daily dating-profile quality and engagement report that only includes profiles whose latest version has a final approv...

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

Identify country with highest sunny-day probability

Write SQL to find the country with the highest probability that a day is sunny. Use the schema and sample data below. Rules: consider a day sunny for ...

Data Manipulation (SQL/Python)
10
0
81 people solved
Oct 13, 2025
TikTok logo
TikTok
Medium
Data Scientist

Count buggy vs non-buggy by employer

Count buggy vs non-buggy submissions for each employer_id, including employers with zero submissions. Return employer_id, buggy_count, non_buggy_count...

Data Manipulation (SQL/Python)
1
0
10 people solved
Oct 13, 2025
Fetch Rewards logo
Fetch Rewards
Medium
Data Scientist

Write SQL to verify quarterly sales decline

You are given a single dataset for a beverage company and must decide whether Q2 2024 truly declined. Write one standard SQL query that produces a com...

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

Compute cohort GMV and payer rate with edge cases

You are given the following schema (timestamps are UTC): users(user_id INT, country STRING, created_at TIMESTAMP) events(user_id INT, event_ts TIMESTA...

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

Compute video-call SQL metrics with edge cases

Use 'today' = 2025-09-01. Assume UTC timestamps. Write SQL to answer both parts below and call out how your queries handle edge cases (duplicates, fai...

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

Compute unconnected 60s posts and reactions averages

Given these tables and sample data, write SQL that answers both tasks below. Use today = 2025-09-01 and interpret "last/past 7 days" as the inclusive ...

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

Write SQL for visibility, calls, and cohort activity

You have the following schema and toy data. Assume "today" = 2025-09-01. users(user_id INT, signup_date DATE) Sample: user_id | signup_date -------...

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

Write SQL for retention, conversion, and churn

Assume today is 2025-09-01 (use the user's local day boundaries based on users.tz). Given the following schema and sample data, write SQL to: (a) Comp...

Data Manipulation (SQL/Python)
12
0
127 people solved
Oct 13, 2025
Medium
Data Scientist

Write SQL to analyze response accuracy and speed

You are given response-level data for an online assessment with sections verbal/design/analytics and verbal subtypes grammar/vocab/tense/other. Using ...

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

Write SQL and Python for funnels/retention

Given the following schema and small samples, answer Parts A–C. Assume timestamps are UTC and "today" is 2025-09-01. Schema: users(id INT, country STR...

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

Match requests and accepts into friendships in SQL

Given two event tables, write a single SQL query (PostgreSQL) to output unique undirected friendships with the earliest valid friendship_date. Schema ...

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

Create and query an e-commerce schema

PostgreSQL only. 1) Create these tables with appropriate types and constraints (choose minimal correct types): products(product_id PK, name NOT NULL, ...

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

Write SQL to find top net-revenue products

Using the sample schema and data below, write a single SQL query that returns, for the last 7 days relative to today (use today = 2025-09-01, so the w...

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

Audit flight data quality from metadata

You’re given an airline on‑time dataset and a one‑page “Metadata” slide that claims: flight_date (string, local time), dep_time/arr_time (HHMM local),...

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

Write SQL for active counts and YTD top driver

Given the following schema and sample data, write SQL to: (a) return the total count of active riders and active drivers on the platform; (b) return t...

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

Model schema and query new-market readiness

Assume today is 2025-09-01. You are given (or can propose) a minimal schema to assess new-market readiness and early performance. Use the schema below...

Data Manipulation (SQL/Python)
1
0
12 people solved
Oct 13, 2025
CVS Health logo
CVS Health
Medium
Data Scientist

Compute age-band spend and YoY in Georgia

Using ANSI SQL only, answer the three parts below on the following schema and samples. Assume dates are YYYY-MM-DD, paid_amt can be negative (adjustme...

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

Verify subscriptions and analyze orders with SQL/Python

You are given two tables. Write SQL and Python (pandas) to answer the sub-questions precisely, handling edge cases, ties, and missing data. Schema - s...

Data Manipulation (SQL/Python)
9
0
66 people solved
Oct 13, 2025
Capital One logo
Capital One
Medium
Data Scientist

Impute missing values without leakage

Given a DataFrame df with columns: user_id, event_date (datetime), country (categorical), device_type (categorical), age (numeric), income (numeric), ...

Data Manipulation (SQL/Python)
0
0
7 people solved
Oct 13, 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