| |
| Capitals |
| Country |
Capital |
| India |
New Delhi |
| USA |
Washington |
| France |
Paris |
|
|
| Continents |
| Country |
Continent |
| India |
Asia |
| USA |
N.America |
| Italy |
Europe |
|
|
---- Returns all rows from both tables where there is a match.
SELECT Capitals.*, Continents.Continent
FROM Capitals
INNER JOIN Continents
ON Capitals.Country=Continents.Country
|
| Output |
| Country |
Capital |
Continent |
| India |
New Delhi |
Asia |
| USA |
Washington |
N.America |
|