반응형
SELECT 
    x,
    y,
    z,
    CASE
        WHEN x + y > z AND x + z > y AND y + z > x THEN 'Yes'
        ELSE 'No'
    END AS 'triangle'
FROM
    triangle
;
반응형

'sql문제' 카테고리의 다른 글

574. Winning Candidate  (0) 2022.09.05
570. Managers with at Least 5 Direct Reports  (0) 2022.09.04
550. Game Play Analysis IV  (0) 2022.09.03

+ Recent posts