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 SQL for social feed metrics and ties

You are given the following schema (PostgreSQL) and sample rows. Assume UTC timestamps and that friendships are static over the sample window. users(u...

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

Implement deduped CTR/RPM aggregator over event stream

Implement a Python function to compute per-day, per-campaign CTR and RPM from an event stream with possible out-of-order and duplicate click events. I...

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

Compute multi-account activity and unread percentages in SQL

You are given two tables. Use them as the source of truth and do not assume any other data. Table: notifications +--------+------------+------------+-...

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

Write complex SQL on DoorDash data

You are given the following BigQuery-style schema and tiny samples (assume timestamps are UTC; assume promotions.discount_amount is the applied discou...

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

Solve multi-part SQL with sliding windows

Assume 'today' is 2025-09-01. You are given the following tables. users(user_id INT PRIMARY KEY, signup_date DATE) orders(order_id INT PRIMARY KEY, us...

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

Solve SQL CTR and Python analytics tasks

Part A — SQL: Compute click-through rate (CTR) by pin_format for US new users. New users are those whose signup_date is within 30 days (inclusive) of ...

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

Design SQL cleaning, mapping, dedupe, and keying

Assume PostgreSQL 15. You may choose a different SQL dialect if you clearly state it and adapt syntax accordingly. Schema and small sample data: - Tab...

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

Write SQL for cuisine median delivery times

Use SQL to answer the following. Assume ANSI SQL with window functions and percentile functions available. Treat “today” as 2025-09-01 (inclusive). Co...

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

Architect cloud data ingestion patterns

Propose a cloud data ingestion and serving pattern for streaming and batch on your preferred cloud (AWS/Azure/GCP). Choose between CDC, event sourcing...

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

Map sources to functional dataset with SQL

You must produce a functional, consumption‑ready dataset for daily exposure monitoring. Assume “today” = 2025‑09‑01. Use the last 7 calendar days by t...

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

Query email logs for deliverability insights

Using the schema and sample data below, write SQL to answer parts a–c. Assume timestamps are UTC. Today is 2025-09-01. Schema: - Emails(sent_id INT, m...

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

Compute CTR by format for new US users

You are given three tables. Write a single SQL query to compute click-through rate (CTR) by pin_format for NEW users in the US, where NEW users are th...

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

Write SQL for rolling frequency caps

You work on ad serving with per-user rolling 7-day frequency caps at the campaign level. Assume "today" is 2025-09-01 and t0 = 2025-09-01 12:00:00 UTC...

Data Manipulation (SQL/Python)
0
0
11 people solved
Oct 13, 2025
Citi logo
Citi
Medium
Data ScientistSenior+

Compute 30-day power users and 7-day retention

Compute 30-day power users and 7-day retention You are interviewing for a Product/Risk Data Scientist role at a crypto exchange. Assume all timestamps...

Data Manipulation (SQL/Python)
6
0
65 people solved
Mar 25, 2025
IBM logo
IBM
Easy
Data Scientist

Write SQL to compute max and min marks

Tables marks | column | type | notes | |---|---|---| | student_id | INT | primary key | | marks | INT | not null | Task Write a SQL query that returns...

Data Manipulation (SQL/Python)
5
0
68 people solved
Oct 3, 2025
Character logo
Character
Medium
Data Scientist

Write SQL for character safety and engagement metrics

You are working with a conversational product that has users, AI characters, and conversations. Write SQL queries for each of the tasks below. Assume ...

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

Compute SHOP spend share and model performance

You work on ads measurement. Advertisers can drive users to either Facebook Shop ('SHOP') or their own website ('WEBSITE'). After an ad is shown, you ...

Data Manipulation (SQL/Python)
7
0
62 people solved
Aug 21, 2025
Shopify logo
Shopify
Medium
Data Scientist

Calculate Week-over-Week Revenue Change Using SQL

transactions +----+---------+---------+------------+ | id | user_id | revenue | order_date | +----+---------+---------+------------+ | 1 | 101 | ...

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

Calculate Response Rate and Compare New vs. Existing User Scores

survey_events +---------+------------+-----------+--------------+---------------------+ | user_id | is_new_user| responded | survey_score | event_time...

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

Identify 3-Person Call Cycles in Video-Calling App

Calls callerid | recipientid | ds | call_id | duration 1001 | 2001 | 2023-02-20| 555 | 180 2001 | 3001 | 2023-02-20| ...

Data Manipulation (SQL/Python)
0
0
6 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