• + 0 comments

    SELECT CASE WHEN (A + B > C AND A + C > B AND B + C > A) THEN CASE WHEN (A=B AND B=C AND C=A) THEN 'Equilateral' WHEN (A=B OR B=C OR C=A) THEN 'Isosceles' ELSE 'Scalene' END ELSE 'Not A Triangle' END FROM TRIANGLES ;