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

Posts and Replies Engagement

Posts and Replies Engagement A content platform stores user-generated posts and the replies that those posts receive. You need to answer two questions...

Data Manipulation (SQL/Python)
0
0
8 people solved
Feb 1, 2026
Pinterest logo
Pinterest
Medium
Data ScientistSenior+

Write Queries for Pinterest Engagement Tasks

You are given several data-manipulation tasks based on Pinterest-style product data. Use UTC for all timestamp-to-date conversions unless stated other...

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

Find multi-account buckets and unread rate

You are analyzing a product in which one user can own multiple accounts. Use the following schema: Table: accounts - account_id BIGINT - user_id BIGIN...

Data Manipulation (SQL/Python)
6
1
31 people solved
Jan 21, 2026
Meta logo
Meta
Medium
Data Scientist

Write SQL for Pixel Signal Metrics

You are working on Meta Ads Pixel analytics. Assume all timestamps are stored in UTC, and analyze the last 30 complete calendar days. Tables 1. advert...

Data Manipulation (SQL/Python)
4
0
56 people solved
Jan 20, 2026
Walmart Labs logo
Walmart Labs
Hard
Data ScientistSenior+

Convert Dictionary to DataFrame

Using Python and pandas, convert the following dictionary into a DataFrame. Each top-level key is a target column name, and each value is a list of [r...

Data Manipulation (SQL/Python)
1
0
20 people solved
Jan 18, 2026
PayPal logo
PayPal
Easy
Data Scientist Locked

Write SQL using HAVING and window functions

This question evaluates SQL data manipulation competency, focusing on aggregation filtering with HAVING and the use of window functions for running co...

Data Manipulation (SQL/Python)
9
0
78 people solved
Jan 17, 2026
Others logo
Others
Easy
Data Scientist

Compute per-coin quarterly amounts and totals

Problem (SQL: Conditional Aggregation) You have two tables: coins - coin_id INT PRIMARY KEY - name VARCHAR transactions - id BIGINT PRIMARY KEY - coin...

Data Manipulation (SQL/Python)
1
0
9 people solved
Jan 17, 2026
Shopify logo
Shopify
Hard
Data Scientist

Calculate Pirated Usage and Revenue Loss

You are analyzing theme piracy on an e-commerce platform. Assume the analysis window is 2023-01-01 through 2023-12-31, all timestamps are stored in UT...

Data Manipulation (SQL/Python)
14
0
142 people solved
Jan 12, 2026
Tools For Humanity logo
Tools For Humanity
Easy
Data Scientist

Compute reply-based engagement metrics

You work on a microblogging app (Twitter-like). Posts and replies are stored in the tables below. Tables all_post - post_id BIGINT PK - post_author_id...

Data Manipulation (SQL/Python)
3
0
44 people solved
Aug 29, 2025
Apple logo
Apple
Easy
Data Scientist

Write queries to compute salary and budget stats

You are given the following interview tasks. Write solutions in SQL and/or Python (pandas) as appropriate. Task 1 — Second highest salary You have a t...

Data Manipulation (SQL/Python)
10
0
73 people solved
Aug 24, 2025
LinkedIn logo
LinkedIn
Medium
Data Scientist

Device Status without Timestamps

Table: article_views article_id INT author_id INT viewer_id INT view_dt DATE Count authors who have never viewed any of their own articles. On 20...

Data Manipulation (SQL/Python)
9
0
26 people solved
Apr 26, 2025
PayPal logo
PayPal
Medium
Data Scientist

Write conditional aggregation SQL queries

Question Write an SQL query to compute the total amount for rows satisfying a condition, comparing approaches that use SUM(CASE WHEN … THEN … END) ver...

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

Calculate and Compare Survey Response Rates for User Tenure

Surveys +--------+------------+--------------+----------+ | userid | date | survey_event | response | +--------+------------+--------------+----...

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

Analyze Seller Activity and Vehicle Listing Interactions

Analyze Seller Activity and Vehicle Listing Interactions listing_interaction +-----------+-----------+------------+------------+----+ | buyer_id | se...

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

Analyze Mobile Promo Orders with SQL Query and Metrics

orders +-----------+---------+--------------+------------+-----------+----------+ | order_id | user_id | order_amount | order_date | is_mobile | is_p...

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

Compute and Rank Store Revenue by Region Using Pandas

Sales +------------+---------+------------+--------+---------+ | date | store_id| product_id | units | revenue | +------------+---------+------...

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

Identify Transactions During 'Golden' Membership Period

transaction +-----------+---------+------------+---------+ | trans_id | user_id | trans_date | amount | +-----------+---------+------------+--------...

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

Derive Key Business Metrics Using SQL or Python

Orders +----------+-------------+------------+---------+------------------+ | order_id | customer_id | order_date | amount | product_category | +----...

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

Calculate Medical Claims by Age and Gender in 2024

MEMBERSHIP +----+----------+--------+---------+ | id | age_band | gender | zipcode | +----+----------+--------+---------+ | 1 | 18-25 | F | 9...

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

Compare WHERE vs HAVING with aggregates

Compare WHERE vs HAVING with aggregates Filter groups based on an aggregate and explain WHERE vs HAVING. Provide a query that returns merchants with c...

Data Manipulation (SQL/Python)
3
0
43 people solved
Jul 31, 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