I can not complete the task.
"Display the list of departments whose employees work in the largest project (by the number of participants)"
SELECT Department FROM DEP INNER JOIN EMP ON DEP.ID_Dep=EMP.ID_Dep INNER JOIN PROJECT_EMP ON EMP.ID_Emp=PROJECT_EMP.ID_Emp GROUP BY Department
This query lists the departments involved in the projects. How to continue to do - not enough knowledge.
SELECT Department FROM DEP INNER JOIN EMP ON DEP.ID_Dep=EMP.ID_Dep INNER JOIN PROJECT_EMP ON EMP.ID_Emp=PROJECT_EMP.ID_Emp GROUP BY Department HAVING COUNT(Name)= (SELECT max(qwe) FROM (SELECT COUNT(Name) as qwe FROM DEP INNER JOIN EMP ON DEP.ID_Dep=EMP.ID_Dep INNER JOIN PROJECT_EMP ON EMP.ID_Emp=PROJECT_EMP.ID_Emp GROUP BY Department) tmp)