select cast(MAX(A) as float), cast(MAX(B) as float), cast(MAX(C) as float) FROM 테이블
에서 cast(MAX(A) as float), cast(MAX(B) as float), cast(MAX(C) as float) 중 최소 값 찾기는 어떻게 하나요?
감사합니다.
select cast(MAX(A) as float), cast(MAX(B) as float), cast(MAX(C) as float) FROM 테이블
에서 cast(MAX(A) as float), cast(MAX(B) as float), cast(MAX(C) as float) 중 최소 값 찾기는 어떻게 하나요?
감사합니다.
컬럼이 세개면 그냥 case when 을 쓰시는게
select case when a < b then
(case when A < c then a else c end)
else b end
from res