Advertisement
DimitarVasilev

Untitled

May 17th, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.18 KB | None | 0 0
  1. SELECT country_name, COUNT(department_name)
  2. FROM countries c, departments d,  locations l
  3. WHERE c.country_id=l.country_id
  4. AND d.location_id=l.location_id
  5. GROUP BY country_name;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement