VR Startup Companies Exercise 10

Hello,

I’m working on the VR startup companies exercise question #10 here.

The hint in the exercise returned the solution with this code:

SELECT project_name
FROM projects
INNER JOIN employees
ON projects.project_id = employees.current_project
WHERE personality = (
SELECT personality
FROM employees
GROUP BY personality
ORDER BY COUNT(personality) DESC
LIMIT 1);

However, I was able to return the same results with this query:

SELECT project_name
FROM projects
INNER JOIN employees
ON employees.current_project = projects.project_id
GROUP BY project_name
HAVING personality = ‘ENFJ’;

Is the suggested code inherently better? Is there any reason my solution would be inferior?