Skip to content

Instantly share code, notes, and snippets.

@KevDev90
Created March 16, 2021 17:11
Show Gist options
  • Save KevDev90/45eee5c2e3d202d421a1d1a46dc763f3 to your computer and use it in GitHub Desktop.
Save KevDev90/45eee5c2e3d202d421a1d1a46dc763f3 to your computer and use it in GitHub Desktop.
relationships-practice
How many people work in the Sales department? - 4 -
SELECT
e.emp_name as Full_Name,
e.salary as Salary,
d.dept_name as Department
FROM
employee e
INNER JOIN
department d
ON e.department = d.id
WHERE
d.dept_name = 'Sales';
List the names of all employees assigned to the 'Plan Christmas party' project. - Toby Flenderson
List the names of employees from the Warehouse department that are assigned to the 'Watch paint dry' project. - n/a
Which projects are the Sales department employees assigned to? - watch paint dry
List only the managers that are assigned to the 'Watch paint dry' project.- Jim halpert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment