SQL Join Interview question:What is output of all SQL joins produces | Oracle , SQL Server, MySQL

preview_player
Показать описание
I'm sharing some intriguing interview questions related to joins. While we all understand how joins function, I want to highlight some interesting scenarios involving them.

Please take a look at the link below and share your thoughts on why the right join results in null values.

#dbt Tutorial
#pythonfordataanalysis Tutorial
#sqltutorial Tutorial
#etltesting videos

#sqlcommands

#oraclesql #mysql #postgresql #sqlserver #sqlinterviewquestions #sqlinterviewquestionsandanswers #realtimeprojects #realtimeinterviewquestions #dataengineering #dataanalytics #databasetesting #etltesting #dwhtesting #bigdatatesting #education
Рекомендации по теме
Комментарии
Автор

T1.C1 = T2.C1 will give
1 2 1 2
2 3 2 3
Null Null 0 1

& adding this condition T1.C2 < T2.C2 means :
2< 2 & 3< 3 so both conditon is false thats why we are getting null.
so we wont get any matching condition from left table

This is an advanced join concept where Right join will result in a non-matching record from both right table & left table.

matching records from both tables is only applicable when given conditions are matching or giving True result.



Thanks for posting. It was nice question

sz
welcome to shbcf.ru