Google SQL Interview
Questions

Practice the analytical SQL patterns Google uses to evaluate data analysts and data scientists. Ranking, median, year-over-year growth — with AI-powered hints and real datasets.

Practice Google SQL Questions Free →

Free to start — no credit card required

What SQL questions does Google ask?

Google's SQL interviews focus on analytical and ranking problems — queries you'd run against search, ads, and product data. These are the most commonly reported patterns:

Hard

Search Query Ranking

Find queries where the top result was not clicked more than 50% of the time. Rank them by "dissatisfaction rate".

Uses: RANK() CASE WHEN HAVING

Practice this →
Hard

Nth Highest Salary

Return the Nth highest salary from an employees table. Handle ties correctly and return NULL if fewer than N distinct salaries exist.

Uses: DENSE_RANK() DISTINCT LIMIT/OFFSET

Practice this →
Medium

Median Salary

Calculate the median salary per department without using any median-specific functions.

Uses: ROW_NUMBER() COUNT() window arithmetic

Practice this →
Medium

Year-over-Year Growth

Given daily revenue by product, calculate the year-over-year growth rate for each product.

Uses: LAG() DATE_TRUNC percentage calculation

Practice this →
Medium

Multi-Product Users

Find the number of users who used at least two different Google products in the same calendar month.

Uses: COUNT(DISTINCT) GROUP BY subquery

Practice this →
Easy

Duplicate Detection

Find all email addresses that appear more than once in a users table. Return email and count.

Uses: GROUP BY HAVING COUNT(*) > 1

Practice this →
See all Google SQL questions →

SQL concepts Google tests most

Ranking functions

RANK(), DENSE_RANK(), ROW_NUMBER() — Google loves ranking problems. Know the difference cold.

Practice ranking →

Conditional aggregation

SUM(CASE WHEN ...) and COUNT(CASE WHEN ...) are central to Google's analytical questions.

Practice aggregation →

CTEs over subqueries

Google interviewers want readable SQL. Use WITH clauses instead of nested subqueries and explain your choices.

Practice CTEs →

Ready to practice?

SQL Quest covers all these Google patterns with AI hints and real data. Free to start.

Start Google SQL Practice Free →

Also preparing for other companies?