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

Calculate Late Delivery Percentage and Top Customers

Orders +-----------+-------------+------------------------+------------------------+ | order_id | customer_id | expected_delivery_date | actual_deliv...

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

Analyze Recent User Activity from Video Call Logs

video_calls caller | recipient | ds | call_id | duration 123 | 456 | 2019-01-01 | 4325 | 864.4 032 | 789 | 2019-01-01 | 9395 | 263.7 456 | 032 | 2019-...

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

Measure Late Deliveries and Identify Top Delayed Restaurants

orders +----------+---------+--------------+---------------------+-------------------------+-----------------------+ | order_id | user_id | restaurant...

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

Analyze Customer Purchase Patterns Using SQL Query

orders +----------+-------------+-------------+------------+------+ | order_id | customer_id | order_value | order_date | city | +----------+---------...

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

Calculate Conversion Rate from Ad Clicks to Page Visits

user_events | user_id | event_time | event_type | ad_id | |---------|----------------------|------------|-------| | 1 | 2023-01-01 10:...

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

Analyze TSV File for User Page Visits and Patterns

visits +-----------+-----------+------+ | person_id | timestamp | page | +-----------+-----------+------+ | 1 | 100 | A | | 1 ...

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

List Top Customers and Monthly Order Counts in SQL

Orders | order_id | customer_id | order_date | amount | |----------|-------------|------------|--------| | 1 | 101 | 2023-01-05 | 120.5...

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

Calculate Weekly, Monthly Hours Watched by Premium Users

watch_events +-----------+----------+----------------+-----------------------+----------------+ | user_id | video_id | watched_minutes| watched_at ...

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

Calculate Monthly Revenue from Orders in 2023

orders | id | order_date | customer | |----|------------|----------| | 1 | 2023-01-03 | 101 | | 2 | 2023-02-14 | 102 | | 3 | 2023-02-20 | 101 | ​ o...

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

Calculate Day-7 Retention Rate from User Post Data

post_activity +---------+------------+-------+ | user_id | post_date | posts | +---------+------------+-------+ | 1 | 2023-01-01 | 3 | | 1 ...

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

Clean and Summarize User Purchase Data Efficiently

transactions +-----------+---------------------+-----------+--------+ | user_id | txn_timestamp | txn_value | txn_id | +-----------+----------...

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

Ensure Correct Numeric Ordering in Visit ID Comparison

visits +----------+---------+-----------+---------------------+ | visit_id | user_id | page | visit_ts | +----------+---------+-------...

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

Identify Key Metrics for Monitoring Shipment Defects

shipment +-------------+----------+------------+---------+---------+ | shipment_id | order_id | ship_date | carrier | status | +-------------+------...

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

Select 10% Users Randomly from User Table

users +----+----------+-------------+ | id | username | signup_date | +----+----------+-------------+ | 1 | alice | 2023-01-02 | | 2 | bob ...

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

Analyze Pirate Theme Usage Growth Over Time

themes +----+--------------+-----------+ | id | name | is_pirate | +----+--------------+-----------+ | 1 | Pirate Red | true | | 2 | ...

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

Compute Customer Spend and Engineer Features for 2023

transactions +-----------+-------------+--------+------------+--------------+ | tran_id | customer_id | amount | tran_date | merchant_cat | +------...

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

Generate Daily Unique User Views for Each Shop

shop_views +---------+---------+---------------------+ | user_id | shop_id | view_time | +---------+---------+---------------------+ | 101 ...

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

Calculate Defect Rate and Identify Top Lanes for Carriers

shipment +-------------+----------+-----------+---------+---------+-------------+-----------+ | shipment_id | order_id | ship_date | carrier | origin ...

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

Calculate Average Event Value by User ID

events +----+---------+------------+-------+---------------------+ | id | user_id | event_type | value | timestamp | +----+---------+-------...

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

Analyze Acquisition Channels for User Value and Retention

acquisition | user_id | acquire_channel | acquire_date | | 101 | organic | 2023-01-05 | | 102 | paid_search | 2023-01-06 | | 103 | social_media | 2023...

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