标签:输出 amazon end bsp sel 三角形 代码 from triangle
列表:A B C 代表三角形三条边
输出:
Isosceles
Equilateral
Scalene
Not A Triangle
代码如下:
select CASE
when (A + B) <= C then ‘Not A Triangle‘
when A = B and B = C then ‘Equilateral‘
when (A = B) or (B = C) or (A = C) then ‘Isosceles‘
when A != B and B != C and A != C then ‘Scalene‘
end from TRIANGLES
标签:输出 amazon end bsp sel 三角形 代码 from triangle
原文地址:http://www.cnblogs.com/Angella/p/6680404.html