New
The Learning module is now live
See what's new
×
Question Bank
Learning
NEW
Pricing
Blog
Forum
HOT
JobRadar
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
SQL Question
AI Insights
Quick Summary
Identify employees whose compensation exceeds that of their direct supervisor.
Requires comparing data points within a single hierarchical table.
Returns filtered identifiers and names based on a salary threshold condition.
What This Tests
Self-referential table relationships
Conditional filtering across aligned records
Hierarchical data traversal
Alias management for clear column referencing
Common Patterns
Self Join
Inner Join
Collapse
Hint
What Interviewers May Ask Next
Accepted
11
/29
Acceptance Rate
37.9%
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
-