You are viewing a single comment's thread. Return to all comments →
(3, 4, 5) is a triangle, but (3, 4, 50) is not.
but this fails in the first condition in the query
CASE WHEN A + B > C AND A+C>B AND B+C>A so the query is correct
when A+B > C AND A=B AND B=C AND A=C
when A+B > C AND A=B OR B=C OR A=C
when A+B > C AND A!=B
'Not A Triangle'
IF (A,B,C)= (20,1,1) then foolow your code the result will be "Isosceles'
But in fact this is not a triangle because A< B+C
So the point is you forget the condition B+C>A AND A+C>B
But i wonder why the code is accepted in this case
I dont understand your meaning, it says in every sub that A+B>C