daily pastebin goal
45%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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;
RAW Paste Data
Top