Skip to content
Advertisement

SQL query to classify triangles into Equilateral, Isosceles, etc

Please tell me what is wrong in this code? I’m getting “ERROR at line 2: ORA-00907: missing right parenthesis” for the following snippet. Please help me out.

Advertisement

Answer

Keep in mind that CASE statements are evaluated IN ORDER – the first WHEN clause that fits “wins” and no further evaluation is made. So:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement