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

Analyze Posting Behavior by Cohort and Date

creator_post +------------+---------+------+ | post_date | user_id | post | +------------+---------+------+ | 2023-01-01 | 111 | 1 | | 2023-01...

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

Calculate Total Revenue in USD Using SQL Query

ads_revenue +---------+------------+---------+----------+ | ad_id | country | revenue | currency | +---------+------------+---------+----------+ ...

Data Manipulation (SQL/Python)
100
1
192 people solved
Aug 4, 2025
Shopify logo
Shopify
Medium
Data Scientist

Measure Pirate-Theme Usage and Revenue Growth Over Time

theme_usage +-----------+------------+-------------+ | user_id | theme_name | created_at | +-----------+------------+-------------+ | 101 | p...

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

Resolve Ties for Top-10 Users in SQL Query

Oculus_Scores +---------+-------+ | user_id | score | +---------+-------+ | u1 | 95 | | u2 | 92 | | u3 | 90 | | u4 | 90 ...

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

Retrieve Top Five Ads by Conversions in 30 Days

ads ad_id | advertiser_id | created_at 1 | 101 | 2024-06-01 2 | 102 | 2024-06-03 3 | 101 | 2024-06-10 ​ ad_i...

Data Manipulation (SQL/Python)
87
0
473 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Understand SQL: DELETE vs TRUNCATE, VIEW vs TABLE, CROSS JOIN

employees +----+--------+---------+ | id | name | dept_id | +----+--------+---------+ | 1 | Alice | 10 | | 2 | Bob | 20 | | 3 | Car...

Data Manipulation (SQL/Python)
77
0
139 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Analyze Top 10 Items' Revenue Contribution by Category

sales +----------+------------+---------+---------+------------+ | order_id | category | item_id | revenue | order_date | +----------+------------+-...

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

Analyze Top Call Initiators and Active French Video Callers

calls +---------+-----------+-------------+---------------------+---------+-----------+ | call_id | caller_id | receiver_id | call_start_time | co...

Data Manipulation (SQL/Python)
86
0
227 people solved
Aug 4, 2025
Confluent logo
Confluent
Medium
Data Scientist

Determine Tutorial Completion Rate by Variant in 7 Days

users | user_id | sign_up_at | tutorial_variant | | 101 | 2023-08-01 | original | | 102 | 2023-08-02 | variant | | 103 | 2023-08-02 | original | | 104...

Data Manipulation (SQL/Python)
93
0
222 people solved
Aug 4, 2025
Snapchat logo
Snapchat
Medium
Data Scientist

Compute User Retention and Analyze Event Data

user_events +---------+---------------------+------------+-------+ | user_id | event_time | event_type | page | +---------+-----------------...

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

Analyze Ad CTR and Convert Transactions to USD

AdsImpressions +-----------+---------+------------+--------+-----------+ | user_id | ad_id | impressions| clicks | event_dt | +-----------+------...

Data Manipulation (SQL/Python)
126
0
500 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Analyze User Engagement with SQL Queries

events +----------+---------+---------------------+ | event_id | user_id | event_time | +----------+---------+---------------------+ | 1 ...

Data Manipulation (SQL/Python)
104
0
275 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Compute 3-Day Rolling Revenue Averages with Pandas

sales +------------+-----------+-------+---------+ | date | product_id| units | revenue | +------------+-----------+-------+---------+ | 2023-01...

Data Manipulation (SQL/Python)
100
0
460 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Analyze Monthly Prime vs Non-Prime Sales and Price Buckets

sales +-----------+------------+----------+-------+ | order_id | order_date | is_prime | price | +-----------+------------+----------+-------+ | 1001...

Data Manipulation (SQL/Python)
82
0
256 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Create Country-Level Spend Report Using Pandas

users +---------+---------+ | user_id | country | +---------+---------+ | 1 | US | | 2 | CA | | 3 | US | +---------+-...

Data Manipulation (SQL/Python)
82
0
195 people solved
Aug 4, 2025
Robinhood logo
Robinhood
Medium
Data Scientist

List Transactions During Active 'Gold' Membership Period

customer_profile +-------------+----------------+--------------------+-------------------+ | customer_id | membership_type| membership_start_date| mem...

Data Manipulation (SQL/Python)
70
0
188 people solved
Aug 4, 2025
Amazon logo
Amazon
Medium
Data Scientist

Explain MySQL to MS SQL Server query syntax differences.

transactions | id | user_id | amount | txn_date | |----|---------|--------|----------| | 1 | 1001 | 25.00 | 2023-07-01 | | 2 | 1002 | 40.00 ...

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

Determine Top Advertisers by Conversion Rate and CTR Analysis

ads +-------+---------------+------------+ | ad_id | advertiser_id | created_at | +-------+---------------+------------+ | 1 | 101 | 202...

Data Manipulation (SQL/Python)
78
0
127 people solved
Aug 4, 2025
PayPal logo
PayPal
Medium
Data Scientist

Analyze Transactions and Classify by Amount in SQL

transactions +---------------+---------+--------+---------+---------------------+-----------------+ | transaction_id| user_id | amount | status | ts ...

Data Manipulation (SQL/Python)
63
0
215 people solved
Aug 4, 2025
Meta logo
Meta
Easy
Data ScientistSenior+

Compute invalid event percentage by pixel

Context You work on an ads pixel instrumentation platform. Each pixel emits events throughout the day; some events are missing (not observed) and some...

Data Manipulation (SQL/Python)
0
1
11 people solved
Aug 1, 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