Skip to content

Instantly share code, notes, and snippets.

SELECT
e1.name
FROM
employees e1
LEFT JOIN(
SELECT DISTINCT
managerid
FROM
employees
WHERE
SELECT
COUNT(*)
FROM students
WHERE
firstName ='John'