๐Ÿ“Œ[SQL ๋ฌธ์ œ ํ’€์ด] HackerRank - Type of Triangle

๋ชจ๊น…ยท2023๋…„ 11์›” 9์ผ
0
post-thumbnail
post-custom-banner

๐Ÿ’ป ๋ฌธ์ œ

โœ๏ธ ์ •๋‹ต

SELECT 
    CASE
        WHEN (A >= B + C) OR (B >= A + C) OR (C >= A + B) THEN 'Not A Triangle'
        WHEN A = B AND B = C THEN 'Equilateral'
        WHEN A = B OR A = C OR B = C THEN 'Isosceles'
        ELSE 'Scalene'
    END
FROM triangles
;
profile
๋ฉˆ์ถ”์ง€ ์•Š๊ธฐ

0๊ฐœ์˜ ๋Œ“๊ธ€