SQL Inner Join

An INNER JOIN returns only the rows that have matching values in both tables. If there are no matches, the rows are excluded from the result set.

Example: Using INNER JOIN

SELECT FreedomFighters.Name, Contributions.Amount, Contributions.ContributionDate
FROM FreedomFighters
INNER JOIN Contributions ON FreedomFighters.FighterID = Contributions.FighterID;

Output:

NameAmountContributionDate
Mahatma Gandhi1000.001920-08-15
Subhas Chandra Bose1500.001943-07-04
Bhagat Singh500.001928-03-23
Rani Lakshmi Bai800.001857-06-18