• + 1 comment

    what is wrong in the below ?

    select case when a.A = b.A and a.A = b.B and a.A = b.C then 'Equilateral' when a.A = b.A and a.A = b.B and a.A <> b.C then 'Isoceles' when a.A <> b.B and a.B <> b.C and a.A <> b.C and (a.A + b.B) > b.C then 'Scalene' else 'Not A triangle' end as "Triangle Type" from triangles a, triangles b;