Skip to content

Commit

Permalink
CASE
Browse files Browse the repository at this point in the history
  • Loading branch information
mennaabdelelhady committed Jan 13, 2025
1 parent 6b10d76 commit 5b5776c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Advanced Select and Joins/610. Triangle Judgement.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
SELECT *,
CASE
WHEN x+y>z AND x+z>y AND y+z>x THEN 'Yes'
ELSE 'No'
END AS triangle
FROM triangle;

0 comments on commit 5b5776c

Please sign in to comment.