• + 1 comment

    Can't understand why this query is wrong? Can anyone explain please?

    select case
               when (A+B)>C or (B+C)>A or (C+A)>B then
                                                        case when A=B and B=C then 'Equilateral'
                                                             when (A=B and B!=C) OR (B=C and C!=A) OR (A=C and B!=A) THEN 'Isosceles'                                                                when (A!=B and B!=C) then 'Scalene'
               else 'Not A Triangle'
               end as triangle_type
    from TRIANGLES;