Is the following query possible in native, straight SQL (no procedures, no outside programming)?
An employees table contains ID, name, salary, and supervisorID. The ID and supervisorID fields are in the same domain (i.e. my Boss's ID = my supervisorID). Find all employees who earn more than his/her management, direct or indirect.
An employees table contains ID, name, salary, and supervisorID. The ID and supervisorID fields are in the same domain (i.e. my Boss's ID = my supervisorID). Find all employees who earn more than his/her management, direct or indirect.