I have a table with the fileds
Table Name:
CountriesInfo
country | continent --------|---------- India | Asia China | Asia Ireland | Europe England | Europe
- User will select a country
- System should display all other countries which are in the same continent of the selected country
I want to use JOINS only (not subqueries). Is there a way to get?
try this:
You can join with the same table and get result:
SQL Fiddle Demo