• + 0 comments

    -- MS SQL Server select case when ((t.A+t.B)<=t.C) or ((t.A+t.C)<=t.B) or ((t.B+t.C)<=t.A) then 'Not A Triangle' else case when (t.A = t.B) and (t.A = t.C) then 'Equilateral' else case when (t.A = t.B) or (t.A=t.C) or (t.C=t.B) then 'Isosceles' else 'Scalene ' end end end from TRIANGLES as t