SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT a.department_id, count(b.employee_id) FROM departments a LEFT OUTER JOIN employees b on a.department_id = b.department_id GROUP BY a.department_id ;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear