Check out example codes for "multiple joins mysql". It will help you in understanding the concepts better.

Code Example 1

SELECT dashboard_data.headline, dashboard_data.message, dashboard_messages.image_id, images.filename
FROM dashboard_data 
    INNER JOIN dashboard_messages 
        ON dashboard_message_id = dashboard_messages.id
    INNER JOIN images
        ON dashboard_messages.image_id = images.image_id

Learn ReactJs, React Native from akashmittal.com