Skip to content
Advertisement

Tag: count

SELECT COUNT from two tables is not working

I have two tables – first table is “projects”: p_id p_name 1 test1 2 test2 3 test2 4 test3 p_name is not unique The second table is “employee”: e_id jan feb mar apr may 1 2 2 3 3 4 2 1 1 3 3 2 3 1 3 2 3 3 4 4 3 2 3 4 I’d like

Sql join with two tables max and count

i have two tables employee : employee_number employee_name salary divison_id division : division_id division_name How to Show division id, division name, number of employees working in each division that has the highest number of employees. I want to have an outcome like this : Answer

Advertisement