Created
March 5, 2019 15:28
-
-
Save lil5/bb84d550b8889ca4b98c344862932378 to your computer and use it in GitHub Desktop.
SQL Refrence
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT department.dept_id AS dept_id, COUNT(employee.dept_id) AS count, SUM(employee.salary) AS sum_of_salary | |
FROM department | |
INNER JOIN employee ON department.dept_id = employee.dept_id | |
GROUP BY department.dept_id | |
ORDER BY department.dept_id ASC |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment