#SQL Leetcode SQL 50 #32: 610: Triangle Judgement
We have a table called Triangle. Each row of this table contains the lengths of three line segments. Report for every three line segments whether they can form a triangle.
Return the result table in any order.
We will be solving all the questions from LeetCode SQL 50 one by one. These questions range from easy to hard.
-- Create the table
CREATE TABLE Triangle (
x INT,
y INT,
z INT,
PRIMARY KEY (x, y, z)
);
-- Insert data into the table
INSERT INTO Triangle (x, y, z) VALUES
(13, 15, 30),
(10, 20, 15);
#datascience #coding #programming #mssql #databasemanagement #leetcode #leetcode610 #leetcodesolution
👉SQL Tutorials Playlist:
https://youtube.com/playlist?list=PL2DNwXX2LoZs3caX9HAW42Eor0Xh1vSCB
👉SQL Shorts Playlist:
https://youtube.com/playlist?list=PL2DNwXX2LoZtW2fgoh-5wF-_zfegjJFtC
👉Python Shorts Playlist:
https://youtube.com/playlist?list=PL2DNwXX2LoZtH_PY68Pus9Urqw-IV3h30
👉Python Tutorials Playlist:
https://youtube.com/playlist?list=PL2DNwXX2LoZu81BduwHZWhbqbRxtpqMYD
👉Excel Shorts Playlist:
https://www.youtube.com/playlist?list=PL2DNwXX2LoZtAkmZlshtmp-asnc1WQ9HL
Тэги:
#sql_tutorial #data_science #ms_sql #sql_interview_quetion_and_answer #sql_leetcode #leetcode_solution #sql_leetcode_solutions #sql_nulls #sql_left_join #sql_query_solutions #leetcode_sql #sql_leetcode_solution #sql_leetcode_610 #sql_triangle_judgement #sql_does_it_form_a_triangle