Skip to content

Instantly share code, notes, and snippets.

@dclarke-modus
Last active February 22, 2018 11:37
Show Gist options
  • Save dclarke-modus/9323e5348c45fadcc3e0d02415970b1d to your computer and use it in GitHub Desktop.
Save dclarke-modus/9323e5348c45fadcc3e0d02415970b1d to your computer and use it in GitHub Desktop.
Employee Table Department
id, name id, name, employee_id
1, Dean Clarke 1, Accounts, 1
2, Harshid 2, Legal, 2
3, Puja
@dclarke-modus
Copy link
Author

write a query, that outputs:
name, count
Harshid, 2

@dclarke-modus
Copy link
Author

select e.* from Employee e INNER JOIN Department d on e.id = d.employee_id

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment