Guest User

Untitled

a guest
Feb 13th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. SELECT
  2. employe,
  3. sum(salary + bonus) AS s,
  4. sum(debt) AS d,
  5. (sum(salary + bonus) - sum(debt)) AS total
  6. FROM test_table
  7. GROUP BY employe;
Add Comment
Please, Sign In to add comment