1
2
3
4
5
6
7
|
SELECT
CASE
WHEN A = B AND B = C THEN 'Equilateral'
WHEN A >=B+C OR B>=A+C OR C>=A+B THEN 'Not A Triangle'
WHEN A = B OR A = C OR B = C THEN 'Isosceles'
ELSE 'Scalene' END
FROM TRIANGLES
|
cs |
반응형
'SQL' 카테고리의 다른 글
leetcode 175. Combine Two TablesEasy (0) | 2022.03.17 |
---|---|
leetcode 595. Big Countries (0) | 2022.03.17 |
Hacker rank Average Population of Each Continen (0) | 2021.10.23 |
Hacker rank Weather Observation Station 17 (0) | 2021.10.21 |
Hacker rank Weather Observation Station 16 (0) | 2021.10.21 |
댓글