I need to use Self Join on this table.
+------------+------+--------+ | Country | Rank | Year | +------------+------+--------+ |France | 55 | 20
Change a.Country = 'Turkey' to b.Country = 'Turkey'
a.Country = 'Turkey'
b.Country = 'Turkey'
You have SELECT DISTINCT a.Country, but your condition is a.Country = 'Turkey'. Even if you do get multiple rows, they are filtered by the DISTINCT
SELECT DISTINCT a.Country
DISTINCT