• [deleted]
    + 0 comments

    For MySQL

    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 AS type_of_triangle
    FROM triangles;