본문 바로가기
Beakjoon&프로그래머스/SQL

[프로그래머스 / SQL] 잡은 물고기의 평균 길이 구하기

by 현장 2025. 3. 3.

-Code

select
    round(
        avg(ifnull(length, 10)), 
        2
    ) as average_length
from 
    fish_info;