logo

SQL Interview Questions

Writing SQL queries is KEY to Acing the Data Science Interview, but if you want to go beyond SQL join our FREE
9-Day Interview Crash Course! (which covers Probability, Statistics, ML, Coding, & Product-Sense).

CompanyTitleDifficulty

Uber

User's Third Transaction

Medium

FAANG

Second Highest Salary

Medium

Snapchat

Sending vs. Opening Snaps

Medium

Twitter

Tweets' Rolling Averages

Medium

Amazon

Highest-Grossing Items

Medium

FAANG

Top Three Salaries

Medium

Spotify

Top 5 Artists

Medium

TikTok

Signup Activation Rate

Medium

Microsoft

Supercloud Customer

Medium

Google

Odd and Even Measurements

Medium

Walmart

Histogram of Users and Purchases

Medium

Alibaba

Compressed Mode

Medium

JPMorgan Chase

Card Launch Success

Medium

Verizon

International Call Percentage

Medium

UnitedHealth

Patient Support Analysis (Part 2)

Medium

Bloomberg

FAANG Stock Min-Max (Part 1)

Medium

Zomato

Swapped Food Delivery

Medium

Your Progress

0%

Easy

0/21

Medium

0/17

Hard

0/9

Tags

Percentage Calculations7

Joins11

Array Functions1

bball0

Date-Time Functions13

Mathematical Functions9

fun-run0

Aggregate Functions36

Ace the Data Science Interview15

Data Type Conversion13

Data Generation Functions0

Window Functions12

The-Office-SQL0

Set Operations2

Null Handling5

Conditional Expression17

Top N Results6

Control Flow Functions1

Arithmetic Operators3

Existence Check3

Conditional Logic11

Common Table Expressions (CTE) or Subquery17

String Functions2

Distinct and Unique Handling9

User Behavior6