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

Calculate Second-Degree Followers for Each YouTuber

following +----------+----------+ | YouTuber | follower | +----------+----------+ | A | B | | A | C | | B | D ...

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

Analyze Retention Metrics Using SQL and Python

transactions +----------+--------+------------+---------+-----------+ | user_id | txn_id | txn_date | amount | is_fraud | +----------+--------+--...

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

Forecast Next Year's Revenue Using YoY% Analysis

ad_revenue +------------+---------+ | date | revenue | +------------+---------+ | 2023-01-01 | 1000 | | 2023-01-02 | 1200 | | 2024-01-01 |...

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

Create OHLC Aggregates from Tick Data in Python

price_stream +-----------+-------+ | timestamp | price | +-----------+-------+ | 0 | 3 | | 1 | 2 | | 2 | 4 | | 3 ...

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

Compute Total Spent in 2023 Excluding Refunds

transactions +----------------+---------+-------------+--------+------------------+ | transaction_id | user_id | merchant_id | amount | transaction_da...

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

Explore Titanic Dataset: Survival Rates, Age, and Correlations

titanic_passengers +--------------+--------+--------+-----+----------+ | passenger_id | pclass | sex | age | survived | +--------------+--------+--...

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

Compute Effective Reads with SQL and Python Streaming

post_read_events +----------+---------+-----------+---------+--------------------+---------------------+---------------------+ | event_id | user_id | ...

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

Compare Spark RDDs, DataFrames, and SQL Performance Gains

SparkJobs +---------+---------+---------------------+----------+ | job_id | user_id | submit_time | status | +---------+---------+---------...

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

Analyze Order Spending Patterns Across Cities Using SQL

Orders order_id | user_id | order_date | city | order_value 1 | 101 | 2023-01-03 | LA | 23.50 2 | 102 | 2023-01-04 | NY | 45.00 3 | 101 | 2023-01-10 |...

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

Analyze Cross-Country Call Data for Recent Trends

Users +---------+-------------+----------+ | user_id | signup_date | country | +---------+-------------+----------+ | 1 | 2021-01-04 | US ...

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

Retrieve Ad Metrics and Rates for Last 7 Days

ads +--------+---------------+----------+ | ad_id | advertiser_id | ad_type | +--------+---------------+----------+ | 101 | 1001 | image...

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

Calculate Ad Performance with Click-Through and Conversion Rates

impressions +---------+---------+---------------------+-----------+ | user_id | ad_id | event_time | platform | +---------+---------+-----...

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

Compare Spark RDDs, DataFrames, and Spark SQL Benefits

spark_jobs +---------+---------------------+-------+-----------+---------+ | job_id | submit_time | user | memory_gb | status | +---------+...

Data Manipulation (SQL/Python)
0
0
6 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)
0
0
7 people solved
Aug 4, 2025
Meta logo
Meta
Medium
Data Scientist

Analyze Social Media Engagement with SQL Queries

info_stream_views +----------+---------+-----------+-------------------------+-----------------------+------------+ | view_id | post_id | viewer_id |...

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

Query Active Loans by Borrower ID in SQL

loans +---------+------------+----------+-----------+---------------+ | loan_id | borrower_id| amount | status | payment_date | +---------+-----...

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

Calculate Shop Visibility Ranking in Search Results

shop_impressions +------------+---------+----------+--------+ | date | shop_id | position | clicks | +------------+---------+----------+--------...

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

Analyze User Engagement and Spammer Read-Rate in SQL

messages +------------+------------+-------------+--------------+-----------+ | sender_id | receiver_id| message_id | sent_date | read_date | +--...

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

Identify Duplicate Posts by User and Date

posts +---------+---------+---------------------+---------------+ | post_id | user_id | created_at | content | +---------+---------+---...

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

Calculate Average Session Duration and Performance Metrics

user_sessions +---------+------------+------+---------------------+---------------------+ | user_id | session_id | app | start_time | end_ti...

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