Employee and manager name SQL query
Filed under PubMatic
The question
Given an employee table with id, name, and manager_id, write a SQL query to return employee names and their corresponding manager names.
No write-up yet. Related questions below have one.
Related PubMatic questions
Collected from public candidate posts and coding forums. Updated Nov 2026.