Problem statement:
Write a query identifying the type of each record in the TRIANGLES table using its three side lengths. Output one of the followin
For Oracle 11g this is working:
SELECT CASE WHEN A+B>C then case 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' END ELSE 'Not A Triangle' END FROM TRIANGLES;