#38

Earning More Than the Boss

HR is reviewing pay anomalies — sometimes a direct report earns more than their manager. Find every such employee and output their ID and name.

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.

nameemployee_id
Eve5
Frank6
Henry8

Your query result will appear here