You are viewing a single comment's thread. Return to all comments →
WHEN A + B > C AND A+C>B AND B+C>A THEN
WHEN A = B AND B = C THEN 'Equilateral'
WHEN A = B OR B = C OR A = C THEN 'Isosceles'
WHEN A != B OR B != C OR A != C THEN 'Scalene'
ELSE 'Not A Triangle'
END FROM TRIANGLES;
Here, there are two case statements are available, inside CASE doesn't have any else statement. First END is for inside CASE and second END is for outside case.