[SOLVED] SQL question
Hi,
I have 2 tables in MySQL (all columns are varchar if it matters):
1) "countries" contains the countries of the world in 2 columns (iso,full_name) for example ("it", "Italy").
2) "locations" has 2 columns (source_country,dest_country) both of which correspond to a iso value from table "countries".
When I query the "locations" table I get the iso names, but I would like that based on the "countries" table to get the full names of the countries, how do I do that?
I think it has to do with subqueries, read a few tutorials still can' figure it out.
I hope I made myself clear.
Example:
instead of getting ("it", "de") (source_country and dest_country correspondingly) I would like to get ("Italy", "Germany") based on the full names I have in the "countries" table.
62°23′30″N 145°09′0″W
ёёмаёё..
Bookmarks