Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
186 B
1
Indexable
Never
SELECT CASE WHEN a+b<=c OR b+c<=a OR c+a<=b THEN 'Not A Triangle' 
WHEN a=b AND b=c  THEN 'Equilateral' 
WHEN a=b OR b=c OR a=c THEN 'Isosceles' 
ELSE 'Scalene'  
END FROM Triangles;