Advertisement
VoronVU

Untitled

Mar 27th, 2015
2,392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT
  2.   l1.LAB_NAME AS LAB,
  3.   l2.LAB_NAME AS BOSS,
  4.   l1.SALARY AS LAB_SALATY,
  5.   l2.SALARY AS BOSS_SALATY
  6. FROM
  7.   LABORING l1,
  8.   LABORING l2
  9. WHERE l1.LAB_BOSS_ID = l2.LAB_ID
  10.   AND l1.SALARY > l2.SALARY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement