Skip to content

Instantly share code, notes, and snippets.

@chucktrukk
Created May 3, 2011 18:25
Show Gist options
  • Save chucktrukk/953902 to your computer and use it in GitHub Desktop.
Save chucktrukk/953902 to your computer and use it in GitHub Desktop.
select a.*
from Trucks t
inner join Boxes b on t.id = b.truck_id
inner join Apples a on b.id = a.box_id
where t.owner_id = 34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment