You are viewing a single comment's thread. Return to all comments →
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;
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 →
Can't understand why this query is wrong? Can anyone explain please?