• + 0 comments

    select e.company_code, founder, count(distinct lead_manager_code), count(distinct senior_manager_code), count(distinct manager_code), count(distinct employee_code) from employee e inner join company c on e.company_code = c.company_code group by company_code, founder order by company_code