You are viewing a single comment's thread. Return to all comments →
SQL Server
SELECT CASE WHEN (a + b > c AND a + c > b AND b + c > a) THEN CASE WHEN (a = b AND b = c) THEN 'Equilateral' WHEN (a = b OR b = c OR c = a) THEN 'Isosceles' ELSE 'Scalene' END ELSE 'Not A Triangle' END AS triangle_type FROM triangles;
Seems like cookies are disabled on this browser, please enable them to open this website
Type of Triangle
You are viewing a single comment's thread. Return to all comments →
SQL Server