Skip to content

Commit cb19027

Browse files
authored
Create NewCompanies.sql
1 parent e12e77d commit cb19027

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Medium/NewCompanies.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
SELECT C.company_code, C.founder, count(distinct(lead_manager_code)), count(distinct(senior_manager_code)), count(distinct(manager_code)),
2+
count(distinct(employee_code))
3+
FROM Company C
4+
INNER JOIN EMPLOYEE E ON (c.company_code = E.company_code)
5+
Group BY C.company_code, C.founder
6+
ORDER BY C.Company_Code;

0 commit comments

Comments
 (0)