sql >> Base de Datos >  >> RDS >> Mysql

MySQL:4 Table has-many-through ¿Unirse?

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