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
$conn = new mysqli("127.0.0.1", "root", "", "project_test");
$result = $conn->query("SELECT COUNT(*) AS NumberofStudents, d.DepartmentName AS Department FROM student s JOIN program p ON s.ProgramID = p.ProgramID JOIN department d ON p.DepartmentID = d.DepartmentID GROUP BY d.DepartmentID;");