← MAQ Software questions

Find topmost and second topmost manager from employee table

Filed under MAQ Software

Given an employee table with `employee_id`, `manager_id`, and `employee_name`, where the topmost manager has `manager_id` as `NULL`, write a query or function to identify the topmost manager (root)…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related MAQ Software questions

Collected from public candidate posts and coding forums. Updated Nov 2026.