This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| CASE | |
| WHEN A + B <= C or A + C <= B or B + C <= A THEN 'Not A Triangle' | |
| WHEN A = B and B = C THEN 'Equilateral' | |
| WHEN A = B or A = C or B = C THEN 'Isosceles' | |
| WHEN A != B and B != C THEN 'Scalene' | |
| END tuple | |
| FROM TRIANGLES; | |
| Write a query identifying the type of each record in the TRIANGLES table using |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT name FROM students | |
| WHERE marks > 75 | |
| ORDER BY substr(name, -3, 3), id; |
NewerOlder