i have these table in database:
country:
id country
------------------
1 USA
2 Brazil
and segment table:
id country
------------------
1 USA
2 Brazil
i have a third table:
Id segment_id country_id
where segment_id is a foreign key of id in segment table
and country_id is a foreign key of id in country table
myquestion is:
how to select from the other table with inner join of the 3 tables,
i need to show the name of the country plus for every country show all the segments in a dropdown menu if anyone could help me
thank u