Top 50
Topic roadmap
Updated weekly · Last refresh Sep 12

Top 50 Subqueries Interview Questions

The most frequently asked Subqueries questions across all roles and companies, ranked by real interview frequency. Updated daily.

50questions
~17htotal time
396companies covered
Track your progressSign up free to work through all 50 questions and resume where you left off.
Start practicing free →
1
SubqueriesStart here. 46 questions · ~920 min
Second Highest Trader SalaryEasy
Practice
Recently asked

Find the second highest distinct salary from a single table using basic PostgreSQL ordering and limiting.

SubqueriesRankingSortingeClinicalWorksNNeenOpal CanadaInformatica
Second Highest Without AggregatesHard
Practice
Recently asked

Find the second highest salary in each department without using aggregate functions.

SubqueriesRankingSelf-JoinsCredit GenieCisco Restaurant + BarDevoteam
Second-Highest Transaction Amount QueryMedium
Practice
Recently asked

Find the second-highest distinct transaction amount using a subquery in PostgreSQL without LIMIT.

SubqueriesRankingsalaryCapgemini FSSBUFreechargeNPCI
Top Customers by Net SalesMedium
Practice
Recently asked

Compute top 10 customers by net sales using joins and aggregations, ordering by revenue with deterministic tie-breaking.

SubqueriesJoinsData WranglingGain DigitalTCSZest AI
Second Highest Salary at NovaTechEasy
Practice
Recently asked

Find the second highest distinct employee salary from a single table, returning NULL if it does not exist.

SubqueriesRankingAggregationsBest BuyAmtex SystemsC3 AI
SQL Join Matching RowsEasy
Practice

Filter Revature assessment records to find candidates who passed SQL Fundamentals, then sort the matching rows by candidate name.

SubqueriesJoinsData WranglingIncedoCloudFactoryRevature
Primary vs Foreign KeysEasy
Practice
Recently asked

Identify which columns act as primary keys and which act as foreign keys in a simple Airtel schema.

SubqueriesJoinsData WranglingMicrosoftState of Wisconsinairtel
More Subqueries questions with a free account

Sign up to see every question

Create a free account to unlock this list and practice real interview questions.

Get my prep plan
2
Window Functions4 questions · ~80 min
Second-Highest Client Transaction AmountMedium
Practice
Recently asked

Use a CTE, join, and dense ranking to return each client's second-highest distinct transaction amount.

Window FunctionsSubqueriesRankingThe AmeripriseTata Consultancy Services (North America)Wells Fargo
More Window Functions questions with a free account
The finish line: interview-readyComplete all 50 questions to finish this plan.