Тёмный

SQL Interview Questions and Answers Series | HackerRank | SYMMETRIC PAIRS | Advanced Join 

Nishtha Nagar
Подписаться 2,8 тыс.
Просмотров 3 тыс.
50% 1

HackerRank Challenge Link - www.hackerrank...
Master Advanced Join concept for Interviews!
This video tackles a SQL challenge from HackerRank, focusing on advanced JOIN concept. Conquer your next data analyst interview by learning how to solve this problem and similar ones!
#sql #sqlinterviewquestions #sqlserver #sqltraining #hackerranksolutions #hackerrank #hackerranksolution #sqlforbeginners #sqltips #sqlite #interviewpreparation #interviewprep #interviewquestionsforfreshers #interviewtips #interviewquestionsforfreshers #interviewpreparation #sqltips

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 18   
@badrilalnagar9232
@badrilalnagar9232 3 месяца назад
I hope that you will get success to your channel.
@shashanksingh4708
@shashanksingh4708 Месяц назад
Thanks for sharing your solution . Have a look at mine : select distinct f1.x , f1.y from functions f1 join functions f2 on f1.x=f2.y and f1.y=f2.x where f1.x
@rajeshin1
@rajeshin1 Месяц назад
Other way can be like this too right select distinct f1.x , f1.y from functions f1 join functions f2 on f1.x=f2.y and f1.y=f2.x where f1.x1 ) order by f1.x;
@pujankoshti9589
@pujankoshti9589 3 месяца назад
why you did GROUP BY X,Y in where clause?. what is the use of that?
@datasciencewithnish
@datasciencewithnish 3 месяца назад
General Context - We use the GROUP BY clause to categorize data before applying the HAVING clause. The GROUP BY clause groups rows together based on shared values in one or more columns. The HAVING clause then filters these groups based on a condition applied to aggregate functions (e.g., COUNT) in this case. Generally, HAVING allows filtering based on aggregate values, which aren't available until after the data is grouped. For instance, here you can't filter for symmetric pairs with a "COUNT > 1" until the rows are grouped and the count is calculated. So, we've used the GROUP BY just to segregate the pairs.
@frezerzelalem4017
@frezerzelalem4017 2 месяца назад
@@datasciencewithnish as a follow up, why didn't you used x1
@Anonymous____________A721
@Anonymous____________A721 26 дней назад
Why not cross join
@Mahanthesh.
@Mahanthesh. 3 месяца назад
Amazing madam
@vitorcastro42
@vitorcastro42 3 месяца назад
Can anyone explain to me why my solution does not work? with Functions_symmetric as ( select Functions.y as x2, Functions.x as y2 from Functions ), Joined_tables as ( select Functions.x, Functions.y, Functions_symmetric.x2, Functions_symmetric.y2 from Functions inner join Functions_symmetric on Functions.x = Functions_symmetric.y2 and Functions.y = Functions_symmetric.x2 ) select distinct x, y from Joined_tables where x
@YogeshChaudhary-s8y
@YogeshChaudhary-s8y Месяц назад
as a follow up, why didn't you used x1
@tanmaynagrale4595
@tanmaynagrale4595 Месяц назад
Same doubt
@palnitin25
@palnitin25 3 месяца назад
Thank you for this Nishtha
@YogeshChaudhary-s8y
@YogeshChaudhary-s8y Месяц назад
as a follow up, why didn't you used x1
@harshitgiria7709
@harshitgiria7709 Месяц назад
Did you understand why it's happening? Could you please let me know?
@coc3311
@coc3311 Месяц назад
okey actual problem is that when you use x1
@harshitgiria7709
@harshitgiria7709 Месяц назад
@@coc3311 Yeah Got it ...Thank You for the explanation.
@lalitranaiitan
@lalitranaiitan 2 месяца назад
cool
@SumanSadhukhan-md4dq
@SumanSadhukhan-md4dq 2 месяца назад
This is nice
Далее
Свадьба Раяна Асланбекова ❤️
00:12
Свадьба Раяна Асланбекова ❤️
00:12