You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SELECTC.company_code, C.founder, COUNT(DISTINCT L.lead_manager_code), COUNT(DISTINCT S.senior_manager_code), COUNT(DISTINCT M.manager_code), COUNT(DISTINCT E.employee_code) FROM Company AS C, Lead_Manager AS L, Senior_Manager AS S, Manager AS M, Employee AS E WHEREC.company_code=L.company_codeANDL.lead_manager_code=S.lead_manager_codeANDS.senior_manager_code=M.senior_manager_codeANDM.manager_code=E.manager_codeGROUP BYC.company_code, C.founderORDER BY company_code;