#658

Employees earning more than their manager

Ozon's HR analytics team flags compensation anomalies — cases where a direct report earns more than their manager. Used for performance review and grade calibration. The table has an is_active flag to exclude terminated staff. Find all active employees (is_active = TRUE) whose salary is higher than their active manager's salary, and show the report's salary alongside the manager's.

Expected output sample

This is what a correct answer looks like — its row count is its own, it doesn't have to match the schema tables.

salaryemployee_idmanager_salary
270000.003250000.00
200000.005180000.00
285000.007270000.00
Ozon

Your query result will appear here

Focus radio
Paused · SomaFM · Fluid