Skip to content

Instantly share code, notes, and snippets.

@sguzunov
Created April 8, 2016 17:12
Show Gist options
  • Save sguzunov/af442bc4b19db0afbc5df9d775b1e11c to your computer and use it in GitHub Desktop.
Save sguzunov/af442bc4b19db0afbc5df9d775b1e11c to your computer and use it in GitHub Desktop.
select sportgroups.id as sportgroupId, sports.name as sport, sportgroups.location as location
from sports join sportgroups
on sports.id in (
select sport_id
from sportgroups
where sportgroups.location like '%Sofia%'
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment