https://school.programmers.co.kr/learn/courses/30/lessons/293261
FISH_INFO와 FISH_NAME_INFO에서 FISH_TYPE이 같은 것을 찾아 주어야 함. 이 때, FISH_TYPE을 FISH_TYPE으로 GROUP BY를 수행한 후, JOIN을 다시 해 주어야 함.
SELECT A.ID, B.FISH_NAME, A.LENGTH
FROM FISH_INFO A
JOIN FISH_NAME_INFO B ON A.FISH_TYPE = B.FISH_TYPE
JOIN (
SELECT C.FISH_TYPE, MAX(C.LENGTH) AS MAX_LENGTH
FROM FISH_INFO C
GROUP BY C.FISH_TYPE
) D ON A.FISH_TYPE = D.FISH_TYPE AND A.LENGTH = D.MAX_LENGTH