Type of Triangle

select
case
when a=b and b=c then "Equilateral"
when (a=b or b=c or a=c) and a+b>c then "Isosceles"
when a!=b and b!=c and a+b>c then "Scalene"
else "Not A Triangle"
end
from TRIANGLES
Share:

0 Comments:

Post a Comment