Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. mshields

    Is this possible in native SQL?

    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...
  2. mshields

    Is this possible in native SQL?

    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...
  3. mshields

    CHECK constraint help

    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.

Part and Inventory Search

Back
Top