New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
JobRadar
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
Microsoft
SQL Question
AI Insights
Quick Summary
Identify the second largest unique value in a numeric column.
Handle edge cases like missing values or tied maximums gracefully.
Ensure the output always returns exactly one row with a designated alias.
What This Tests
Handling duplicate values and ranking logic
Subquery nesting and scalar aggregation
Edge case management for empty or insufficient datasets
Proper use of aggregate functions with filtering conditions
Common Patterns
Subquery
Aggregation
Deduplication
Sort
Collapse
Hint
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Run
Submit
Test Cases
SQL Schema
Pandas Schema
Input
-
Output
-
Expected
-