i have these table in database:
country: id country ------------------ 1 USA 2 Brazil
and segment table:
id
SELECT * FROM third_table t INNER JOIN country c ON t.country_id = c.country_id INNER JOIN segment s ON t.segment_id = s.segment_id