Top 50 sql queries Interview Questions
The most frequently asked sql queries questions across all roles and companies, ranked by real interview frequency. Updated daily.
Find the second highest distinct CRP value from completed trials using a join and DENSE_RANK window function.
IQVIA
Smartsheet
Enova InternationalUse LEFT JOINs and COUNT DISTINCT to count games with under 10 hours of playtime for each console.
Xero
NateraUse DENSE_RANK and a LEFT JOIN to find active HashedIn employees earning the second-highest distinct salary.
HashedIn
HashedIn by Deloitte
Newgen SoftwareRank completed Cloud Software Group product revenue within each category using aggregation and a window function.
Cloud Software Group
Rich Products
Observe.AIUse window functions to calculate session length and flag user session gaps over 30 minutes.
Adobe
AttentiveUse a CTE, joins, and distinct aggregates to calculate Meta Logistics bookstore payment metrics.
Meta LogisticsJoin Unity product and revenue data to calculate annual revenue and year-over-year growth with LAG.
Unity Technologies
Intuitive Surgical
Balyasny Asset ManagementUse DENSE_RANK and a CTE to find every Capgemini Engineering employee earning the second highest distinct salary.
Capgemini Engineering
Hsbc
Ion GroupSign up to see every question
Create a free account to unlock this list and practice real interview questions.