i have these table in database:
country:
id country
------------------
1 USA
2 Brazil
and segment table:
id
try this query.. this will help you to create list
select countrysegments.id as countrysegmentsID, country.country as countryName,
segment.country as segmentName
from countrysegments
inner join country on countrysegments.country_id = country.id
inner join segment on countrysegments.segment_id = segment.id