MySql. How to use Self Join

后端 未结 3 1532
醉话见心
醉话见心 2020-12-10 05:17

I need to use Self Join on this table.

+------------+------+--------+
| Country    | Rank |  Year  |
+------------+------+--------+
|France      |  55  |  20         


        
3条回答
  •  眼角桃花
    2020-12-10 05:41

    select distinct country,year from table1 where year=(select year from table  
    where country='turkey') and country !=turkey;
    

提交回复
热议问题