Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT
- l1.LAB_NAME AS LAB,
- l2.LAB_NAME AS BOSS,
- l1.SALARY AS LAB_SALATY,
- l2.SALARY AS BOSS_SALATY
- FROM
- LABORING l1,
- LABORING l2
- WHERE l1.LAB_BOSS_ID = l2.LAB_ID
- AND l1.SALARY > l2.SALARY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement