Skip to content

Instantly share code, notes, and snippets.

@teodanciu
Last active August 29, 2015 14:06
Show Gist options
  • Save teodanciu/b6d7ed121a8184f03f48 to your computer and use it in GitHub Desktop.
Save teodanciu/b6d7ed121a8184f03f48 to your computer and use it in GitHub Desktop.
select tags.name, tree_nodes.id from tree_nodes inner join tags on tree_nodes.tag_id = tags.id where tags.name in (
'afternoon tea',
'byob',
'bar',
'breakfast',
'brunch',
'cafe',
'catering',
'dj (facilities)',
'dinner',
'entertainment facilities',
'fireplace',
'karaoke (facilities)',
"kids' menu",
'lunch',
'no alcohol',
'outdoor area',
'outdoor dining',
'outdoor facilities',
'parking (free)',
'pinball',
'pool table',
'private rooms',
'restaurant & bar facilities',
'restaurant',
'rooftop',
'terrace/patio',
'wheelchair access',
'wireless (free)',
'al fresco',
'birthdays',
'business',
'celebrations',
'cocktails',
'dating',
'dinner & a show',
'fine dining',
"girls' night out",
'great views',
'happy hour',
'hen nights',
'just opened',
'late night',
'post-theatre',
'pre-theatre',
'quirky',
'romantic',
'speciality beers'
) order by FIELD(tags.name,'afternoon tea','byob','bar','breakfast','brunch','cafe','catering','dj (facilities)','dinner','entertainment facilities','fireplace','karaoke (facilities)',"kids' menu",'lunch','no alcohol','outdoor area','outdoor dining','outdoor facilities','parking (free)','pinball','pool table','private rooms','restaurant & bar facilities','restaurant','rooftop','terrace/patio','wheelchair access','wireless (free)','al fresco','birthdays','business','celebrations','cocktails','dating','dinner & a show','fine dining',"girls' night out",'great views','happy hour','hen nights','just opened','late night','post-theatre','pre-theatre','quirky','romantic','speciality beers')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment