NULL SAFE Join - Tricky SQL Interview Question🔥SQL Joins - No One Will Tell You This❤️Data Engineer🔥

  Рет қаралды 27,790

E-Learning Bridge

E-Learning Bridge

Күн бұрын

Пікірлер: 54
@shashank_mishra
@shashank_mishra 2 жыл бұрын
How many of you already knew about Null Safe Join? Let me know in the comment section
@debajyotideba5001
@debajyotideba5001 2 жыл бұрын
Sir , please make a set of SQL problems sheet basic to advance for Data Engineer ❤️. In the market there are bunch of SDE sheet for SDE, but for DE there is no such sheet for Aspiring DE. So, please make it, it will be helpful for all the Aspiring Data Engineer ❤️💙
@vineetpandya1306
@vineetpandya1306 2 жыл бұрын
I had no idea about this concept at all!! Thanks Shashank so much....you're literally updating us about all these tricky interview cases free of cost 😇
@VedanttMehtaa
@VedanttMehtaa 2 жыл бұрын
create table tableA(colA int): create table tableB(ColB int); insert into tableA(colA) values(1),(2),(1),(5),(NULL),(NULL) insert into tableB(colB) values(NULL),(2),(5),(5);
@sanjeevrana1954
@sanjeevrana1954 Жыл бұрын
Thank you!!😀
@debajyotideba5001
@debajyotideba5001 2 жыл бұрын
Sir , please make a set of SQL problems sheet basic to advance for Data Engineer ❤️. In the market there are bunch of SDE sheet for SDE, but for DE there is no such sheet for Aspiring DE. So, please make it, it will be helpful for all the Aspiring Data Engineer ❤️💙
@ravindra2141
@ravindra2141 2 жыл бұрын
as soon as i heard null safe , COALESCE was the first thing that came to my mind .
@gurramvarunchowdary5735
@gurramvarunchowdary5735 2 жыл бұрын
Exactly 😀
@anjanguharoy
@anjanguharoy 2 жыл бұрын
You mean select * from tableA inner join tableB on coalesce(tableA.colA,'')=coalesce(tableB.colB,'') ? Considering colA and colB are string
@gurramvarunchowdary5735
@gurramvarunchowdary5735 2 жыл бұрын
@@anjanguharoy yes
@shashankemani1609
@shashankemani1609 2 жыл бұрын
I didn't know about null safe join at all. And not sure how we can use coalesce here. I don't think it's useful in this case. As always superb thank you! Please come up with more such problems 🙏🏻
@hdr-tech4350
@hdr-tech4350 Жыл бұрын
tableA.colA == tableB.colB or (tableA.colA is null and tableB.colB is null) ; null safe join Operator
@avilashsadual3393
@avilashsadual3393 2 жыл бұрын
Instead of long or operation:select * from tablea a, tableb b where nvl(a.cola,'awe') = nvl(b.colb,'awe');
@mbkamath3720
@mbkamath3720 Жыл бұрын
Mind blowing!🤯🤯🤯thank u Shashank for these kt..hungry for more..
@prathamIsOp
@prathamIsOp 9 ай бұрын
I was asked this question in my interview and i answered with null getting matched with the null. Now i have finally understood how to handle null values with inner join.
@ThePragyashree
@ThePragyashree 2 жыл бұрын
So good... I really didn't know about null safe logic... Thank you so much.. 👍
@AbhishekSharma-sr6mh
@AbhishekSharma-sr6mh 2 жыл бұрын
You can also use something like this in ON clause, single condition- ON ISNULL(ColA, 9999) = ISNULL(ColB, 9999) **9999 is just an arbitrary value for the sake of join whenever NULL value is encountered.
@millennial_post
@millennial_post Жыл бұрын
This totally new problem statement for me...thanks for the detailed information.
@ramanreddy7276
@ramanreddy7276 Жыл бұрын
postgresql with cte as ( select COALESCE(v1,0) as v1 from t1 as a1 ), bb as ( select COALESCE(v1,0) as v1 from t2 as b1) select * from cte as c1 inner join bb as d1 on c1.v1 = d1.v1;
@aman6646
@aman6646 2 жыл бұрын
Can you make a similar video on that question from your Amazon data engineer interview which was about table a and b something about plane ?
@navjotsingh-hl1jg
@navjotsingh-hl1jg 2 жыл бұрын
sir where all this things learn from?
@hariomawasthi2675
@hariomawasthi2675 2 жыл бұрын
Really enjoyed the way you explained the concept ...very simple and easy to understand
@databridge9580
@databridge9580 2 жыл бұрын
You could have used NVL for that , again it's in Oracle, don't know what is there in my SQL
@VamsiKrishna-je3iy
@VamsiKrishna-je3iy 2 жыл бұрын
Kindly do video on aggregate function like department wise in various combination ur video of joins helped me a lot
@manunair3327
@manunair3327 2 жыл бұрын
Sir could please share any platform name where we can practice these kind of questions ? Please reply thanks in advance
@eshakhosla1
@eshakhosla1 Жыл бұрын
Hi. Thankyou for sharing this useful video. Also, I have one doubt if you can help - What will be the result if left/right joins are applied to these two tables?
@Datapassenger_prashant
@Datapassenger_prashant 2 жыл бұрын
Main thing is , asking the questions from interviewer. This concept was not known to me as well ..
@chirag1688
@chirag1688 2 жыл бұрын
Your videos were very helpful for me to get motivated keep it up brother...❤
@forniteguruji9409
@forniteguruji9409 2 жыл бұрын
Hey Shashank, Is there any good source to practice or get to know these types of tricky questions for FAANG level preparation?
@shashank_mishra
@shashank_mishra 2 жыл бұрын
Sadly nothing as such available
@pankajdubey1123
@pankajdubey1123 5 ай бұрын
thanks sir for this content
@deepanshusingh6057
@deepanshusingh6057 2 жыл бұрын
Interesting , thanx
@sravankumar1767
@sravankumar1767 2 жыл бұрын
Superb bro 👌
@smileplease6151
@smileplease6151 2 жыл бұрын
Thank you so much bro
@subhojitpaul5527
@subhojitpaul5527 2 жыл бұрын
Very informative
@sudharsanaragavendra1213
@sudharsanaragavendra1213 2 жыл бұрын
Hi mr.shashank Is engineering degree is must to become data engineer?.
@jignesh1001
@jignesh1001 2 жыл бұрын
Why didn’t u use isnull or coalesce operation..
@ravinarayan1008
@ravinarayan1008 2 жыл бұрын
Hi sir, I am a SQL database developer and wants to get into data engineer profile ,plz guide me.
@sagaragarwal5705
@sagaragarwal5705 2 жыл бұрын
Hi sir, please make more videos on sql
@SunilVerma-qg8bb
@SunilVerma-qg8bb 2 жыл бұрын
Can we use WHERE statement instead of OR
@francis.joseph
@francis.joseph 2 жыл бұрын
what is the use of null safe joins
@ganaparthijagadeesh
@ganaparthijagadeesh 2 жыл бұрын
Isnull in sqlserver
@sravankumar1767
@sravankumar1767 2 жыл бұрын
Keep posting new videos 📹 ✨
@taniyasaini6830
@taniyasaini6830 2 жыл бұрын
cant we use IFNULL or ISNULL?
@powerfullifehacks7238
@powerfullifehacks7238 2 жыл бұрын
Hi Sashank, can you suggest me a course to crack Data engineer roles in FAANG level companies. Plz🙏🙏🙏🙂🙂 -currently I am working as azure data engineer
@shashank_mishra
@shashank_mishra 2 жыл бұрын
There is no dedicated course for it but I have created a roadmap for the same
@powerfullifehacks7238
@powerfullifehacks7238 2 жыл бұрын
Thanks Shashank for your reply
@dv584
@dv584 2 жыл бұрын
Similar experience,, I had two interviews with two different companies .... in the first interview the interviewer asked a question related to Lead and Lag functions (I have never used them and hardly know about them in SQL server), I was not able to solve it.. the later day in another interview i had similar question from another level 5 company.. luckily i was able to answer it as i already had learned after the previous interview.
@forniteguruji9409
@forniteguruji9409 2 жыл бұрын
what is level 5 company?
@Sharmasurajlive
@Sharmasurajlive 2 жыл бұрын
👍🏻
@VamsiKrishna-je3iy
@VamsiKrishna-je3iy 2 жыл бұрын
In struggling with it
@hirenvjaiswal
@hirenvjaiswal 2 жыл бұрын
Awesome @shashank
Tricky SQL without JOIN Operation🔥 EXISTS For LOOKUP SubQuery !!
17:01
E-Learning Bridge
Рет қаралды 11 М.
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 64 МЛН
Running With Bigger And Bigger Lunchlys
00:18
MrBeast
Рет қаралды 46 МЛН
Do you choose Inside Out 2 or The Amazing World of Gumball? 🤔
00:19
Mechanical to DATA ENGINEER Journey🔥 Cognizant 4 LPA To 400% Hike
27:11
Practice SQL Interview Query | Big 4 Interview Question
14:47