Problem Solving
[MySQL] 수도명에 국가명이 들어가 있는 나라의 국가명과 수도명 조회하기
luminous13
2022. 4. 18. 12:02
문제
풀이
- Find the capital and the name --> select capital, name
- where the capital includes the name of the country -> where capital like concat('%', name, '%');
select capital, name
from world
where capital like concat('%', name, '%');