Thank you for the response! Yes, by indirect, I mean my boss's boss, but it could also be anyone "up the corporate ladder." That is the tricky part of this query (if it is even doable). I would like to compare an employee's salary to everyone above him/her in the corporate...
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...
I have 2 columns: item_price and item_cost. I need to impose a CHECK constraint at the table level where item_price can never be more than three times the item_cost and also can never be below 120% of the item_cost. Any help would be appreciated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.