Guest User

Untitled

a guest
Feb 18th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. SELECT DEPARTMENT_ID, SUM(SALARY)
  2. FROM Employees
  3. GROUP BY DEPARTMENT_ID;
  4.  
  5. SELECT MIN(user_id), MIN(account), SUM(balance) FROM `t1` GROUP BY user_id, account;
Add Comment
Please, Sign In to add comment