Inner Join

SQL INNER JOIN

An inner join is a join in which the values in the columns being joined are compared using a comparison operator.

SQL Inner Join syntax

SELECT column_name(s)
FROM A_table INNER JOIN B_table
ON A_table.column_name = B_table.column_name;

Training_Course

IDNAMEDURATIONPRICE
1SQL5200
2T-SQL7700
3MySQL5600
4PL/SQL7800
5PostgreSQL6500

Certifications

IDNAMEPRICEID_TC
1PostgreSQL certification8005
2SQL certification3501
3T-SQL certification10002

Example

SELECT t.ID,t.NAME,t.PRICE
FROM Training_Course t INNER JOIN Certifications c 
ON t.ID = c.ID_TC ;

Results

IDNAMEPRICE
5PostgreSQL500
1SQL200
2T-SQL700