LeetCode Interview SQL Question with Detailed Explanation | Practice SQL | LeetCode 610

preview_player
Показать описание
Previous Video: LeetCode 596 Classes More Than 5 Students

In this video I solve and explain a leetcode SQL question using MySQL query. This question has been asked in Apple, Facebook, Amazon, Google, Adobe, Microsoft, Adobe interviews or what we popularly call FAANG interviews.
I explain the related concept as well. This question is about finding that for given values of line segments whether a triangle is possible or not from them and also includes points to keep in mind to develop SQL queries. You will also learn about CASE WHEN THEN END clause.

LeetCode is the best platform to help you enhance your skills, expand your knowledge and prepare for technical interviews.

If you found this helpful, Like and Subscribe to the channel for more content.

#LeetCodeSQL #FAANG #SQLinterviewQuestions
Рекомендации по теме
Комментарии
Автор

thanks for the video, here is solution using if instead of case:
select x
, y
, z
, if((x + y > z) and (y + z > x) and (z + x > y), 'Yes', 'No') as 'triangle'
from Triangle

saisushanthdurvasulabitsian
Автор

Great efforts for your work bro, keep going

fazilhussain
Автор

Great efforts...!!
Please keep it up...
Thanks a lot.

shivasiddharthnarayanan
Автор

select *, CASE WHEN x+y>z and y+z>x and x+z>y THEN 'Yes' else 'No' END as triangle
FROM Triangle;

pankajchandel
Автор

its giving me error, FROM keyword not found where expected

gauravpp