Visit brilliant.org/techTFQ/ to get started learning STEM for free, and the first 200 people will get 20% off their annual premium subscription.
@singavarapunavya91432 жыл бұрын
Hi @techTFQ I have been following you since very long time and I got better in SQL just because of you! Thanks a lot. Now I have a problem and not able to solve it since 2 days! Could you please help me with it! SELECT * FROM YourTable WHERE '123' IN ('Col1', 'Col2','Col3'...'Coln') But the Where condition isn't working for 2 values example: WHERE ('123', '456') IN ('Col1', 'Col2','Col3'...'Coln') , Is there any way to search for 2 or more values existing in different columns??
@techTFQ2 жыл бұрын
Thank you Navya .. You can use OR clause for this case.. WHERE ( Col1 in (123, 456) OR Col2 in (123, 456) OR Col3 in (123, 456) OR Col4 in (123, 456) )
@singavarapunavya91432 жыл бұрын
@@techTFQ Thanks for the response, Yes I did use it but I don't want to write multiple OR's because 123, 456 is not constant and these might go upto 100 or 200, so I have to paste them in every single OR condition every time! So is there any way to solve this issue? I want to give the values only once and it should check in all the columns for it's existence.
@techTFQ2 жыл бұрын
Can you share the entire query and datasets with me so I can check . U can email me
@singavarapunavya91432 жыл бұрын
@@techTFQ sure thanks.
@correialc2 жыл бұрын
Hi Thoufiq. I've been working with SQL (and teaching) for more than 2 decades and never found someone addressing SQL problems like you. The strongest aspects are problem-solving orientation (instead of theoretical) and ANSI standard queries (as much as possible). Congratulations! I'm recommending your videos to my students and workmates.
@techTFQ2 жыл бұрын
Hi Leandro, Thank you so much 🙏🏼 It’s very special to receive such amazing feedback from an experienced SQL professional like yourself. Thank you for sharing this feedback, means a lot 🙏🏼 And thank you too for recommending my contents..
@MimmoCRISTOFARO8 ай бұрын
At last a clear, detailed and impressive explanation with real examples of what is, how it works and how to write a WITH RECURSIVE CTE. BRAVO!!!
@sspinjari2 жыл бұрын
Every single person who is working in SQL must have this channel in youtube subscribe list. I have recommended this channel to 3 colleague's & I am extremely happy to say they all liked this channel. And all 3 are thanking me 😍
@DinoDunelm8 ай бұрын
Thank you so much for the detailed tutorial! I’ve been a data analyst for three years but never came across this technique until I received an interview from another company. Hope I can ace that SQL interview🤞
@mike-w1t2e10 ай бұрын
I've looked at dozens of RECURSIVE CTE tutorials but until this one, I couldn't find an explanation of the JOIN condition. Thank you ... exactly what I needed!
@claybyfrancisshop Жыл бұрын
I've started my data science course and I thought that recursive cte wasn't meant for me but thanks to you i'm finally able to understand the logic behind it. Thanks Thoufiq.
@techTFQ Жыл бұрын
Thanks, glad it helped
@aakriti_1002 жыл бұрын
I did both these topics (CTE & recursive CTE) from LinkedIn learning; they made me feel like I can't learn but you make SQL so easy. Thanks for your content:-) I'm at my first step as data analyst; looking forward to have help from you.
@techTFQ2 жыл бұрын
I am glad to hear that Aakriti
@cbarlow3 Жыл бұрын
Excellent explanation, Thofique! I like how when you ran the second example in multiple DBMSs, you went in an order that made you do an ever-increasing number of changes. :) I'll add another layer: if you were using Db2, you would have to 1. remove the RECURSIVE keywork, 2. use UNION ALL instead of UNION (I generally discourage using UNION by itself anyway), 3. specify column aliases as part of your CTE syntax (so far all the same changes you need for Oracle)...AND you also can't do an INNER JOIN in your recursive CTE! Not a problem for Example 1 (output integers 1 through 10), but for Example 2 it means you would have to go back in time to a time before INNER JOIN was invented (pre-1992!) and change your (INNER) JOIN to a Cartesian join (using the old-school comma-separated list of tablenames...not even the CROSS JOIN syntax!) followed by the appropriate WHERE clause to ensure you only get back the same rows that you would have with an INNER JOIN. Weird, right?
@sachinvishwakarma5868 Жыл бұрын
Very well explained. I remember using the same concept when I had to generate the Voucher Code for one promotion feature. The voucher code should be AlphaNumeric and it should not already be present in the existing VoucherCodes table. It was very interesting and this concept had helped a lot.
@dmitrii47992 жыл бұрын
Great explanation. How to show the hierarchy up and additionally if a manager has another employee, besides the searched one, show him and hierarchy down, if searching down found employee has 2nd manager then show him too. So we show all hierarchy of the company.
@dhirendratripathi8912 жыл бұрын
Literally I would say god level explanation, I was struggling with recursive query recently i had use case 👍
@sujaa100010 ай бұрын
Hi @techTFQ, I wanted to express my sincere gratitude for the invaluable knowledge I've gained through your videos. As an experienced data engineer, I have found your content to be exceptionally insightful and well-presented. Your selfless efforts and dedication to teaching have not gone unnoticed, and I truly appreciate the time you invest in sharing your expertise. The clarity with which you explain complex concepts and the practical insights you provide on data analysis have been immensely beneficial to my learning journey. Your commitment to excellence in education is evident, and I wanted to take a moment to acknowledge and thank you for the positive impact you've had on my understanding of the subject. I have enthusiastically recommended your channel to many of my colleagues who, like me, greatly appreciate the quality of your content. Please continue your outstanding work, as it is making a significant difference in the learning experiences of individuals in the data engineering community. Thank you once again for your dedication and exceptional teaching. Regards
@karthikeyanpandian13302 жыл бұрын
Hey Thoufiq, I have become a big fan of your content off late. I think that I have subscribed and started watching your videos for a month or 2. However, I have completed watching every single video that you have uploaded so far. The way of teaching is excellent and the examples that you provide are the backbone for the concepts that you are explaining. Great work! Thanks for the amazing knowledge share!
@techTFQ2 жыл бұрын
Thank you so very much Karthikeyan :) I am so glad you have liked my contents. Thanks for the feedback too
@theshanerap2 жыл бұрын
You’ve taught me more in one week, than I learnt in one semester. GOAT STUFF!
@santoshgowda74622 жыл бұрын
I have watched so many videos regarding the same topic but really you made me understand very easily...thank you very much. keep teaching us.
@techTFQ2 жыл бұрын
Glad to hear that Santhosh ☺️
@SoumyaPriyaGodera Жыл бұрын
Hi Thoufiq,I am a beginner learning Data Science course. Your teaching skills are very good and anyone can understand the way you explain. I really thank you for the SQL videos which are very useful and also I recommend to my friends to watch your videos.
@shahid98132 жыл бұрын
Fantastic in my 10 years of IT i have not seen this in-depth tutorial. Amazing ✋
@Ismail-hd4yz7 ай бұрын
Omg i was planning how to manage categories with multi level , and this will perfectly work for me. And most importantly i would able to all parents category and when user click on any of that i can get all which belongs to that specific category. My problem solved
@kinjalbrahmbhatt64107 ай бұрын
Hi toufiq, i have been go through many sql videos but your videos are very descriptive i love the way you elaborate small small details while solving queries,it would be great if you help out what is going on in industrial work Love from india
@siddheshaddarkar40746 ай бұрын
Thanks a lot... CTE is great...we can further optimise by creating cte_employee to store employees _details in single time...and use the same cte in recursive
@anushas19105 ай бұрын
Your Amazing sir . Even a person with Zero Sql knowledge can easily understand the concept .Thank you for your efforts to make us to understand the concept :-)
@sql87582 жыл бұрын
Thank you so much for the video Taufiq. When I'm struggling to SQL problems, your videos are my first to go.
@techTFQ2 жыл бұрын
I am glad to hear that bro
@sonalilagnajita87402 жыл бұрын
Hey @techTFQ, i have been struggling with recursive query from long time. You gave me a crystal clear understanding. Thanks
@fenggao31702 жыл бұрын
This is definitely an amazing lesson helping me to resolve the issues in my work. Thanks Thoufiq, you are an amazing tutor.
@towhidulrazu5 ай бұрын
Your SQL videos are awesome & extraordinarily understoodable. Seems like taking a delicious chocolate everytime. Once again another SQL (recursive this time) is now clear like distilled water! Hats off bro!
@finix7419Ай бұрын
finally I understood this concept thanks to this video
@tuandino69902 жыл бұрын
Finally a video that can help me understand recursive sql query. Salute to you sir
@techTFQ2 жыл бұрын
Glad this helped
@timothymalahy78802 жыл бұрын
Definitely one of the better examples and succinct explanations. I liked how you reviewed the syntax first and came back to it when implementing. Keep it up.
@a-ezzat56779 ай бұрын
i really respect you so much you are a professional in my opinion i have learned a lot from you . greetings from egypt
@SwethaNandyala-sf9lt Жыл бұрын
Cant thank you enough for your content and explaination....lots of admiration from banaglore
@zhipengliu47677 ай бұрын
Thank you! This tutorial helped me understand recursive sql statement. Thanks very much!
@prajwalsiwakoti98662 жыл бұрын
Thank u so much . Could you please make a video on database indexing in detail like what is it, how to do indexing and its usage? Thank you in advance
@techTFQ2 жыл бұрын
Sure Prajwal , will consider doing it
@Rockythepom Жыл бұрын
A detailed explanation of confusing recursive query. simply Awsome
@puneetaggarwal7549 Жыл бұрын
Looking at your queries and way of explanation I wonder why I wasted my money on some SQL course. God why didn't I find your playlist earlier.
@linear_regression95412 жыл бұрын
Man, you are simply brilliant! You were able to make me to understand this (I couldn't even do that at university lol). I just have one suggestion: could you explain not so fast? Thank you so much bro! Greetings from Paraguay!
@techTFQ2 жыл бұрын
Your welcome buddy.. Glad you liked it and noted on the suggestion 👍
@Anonymous_it_is Жыл бұрын
You explain complex topics in a very intuitive manner. Awesome content!! I was having a hard time understanding recursive CTEs, but after watching this - everything seems crystal clear about recursive CTEs :)
@Momo-qr3rd2 жыл бұрын
Thank you very much🙏😊 It helped me a lot. Watching only one tutorial, made me follow and watch all of your videos. It is a great way to explain complex topics like this with examples. Could you please share your database for each of your tutorials so can pactise with it? Of course I could create it myself but its easier if you would share it.
@techTFQ2 жыл бұрын
Thank you bro .. glad you liked it.. As for dataset, I always share it either in my blog or in my discord. For this video, you can get it from my discord
@sravangoud97002 жыл бұрын
+1
@techTFQ2 жыл бұрын
Thank you bro
@shafi1232 жыл бұрын
Thanks Thoufiq for precise and clear explanation
@techTFQ2 жыл бұрын
Glad this helped Shaik :)
@flashborn-band Жыл бұрын
Awesome video, very well explained. Thank you. Just one little thing with the last example. I wished you would have changed the level number backwards somehow.
@ashutoshbafna66172 жыл бұрын
thank you. you explained beautifully. please give some examples to practice apart from what you have solved - to check learning on these concepts, if possible. thanks a lot .
@techTFQ2 жыл бұрын
Thank you Ashutosh :) will consider you request.
@ganeshv7912 жыл бұрын
Awesome got a clear picture on recursion. Please make videos related to dynamic queries in PostgreSQL. One humble request I need clear cut guidance on Service Broker. Thanks....
@techTFQ2 жыл бұрын
Thank you buddy and noted on the request
@odelolatechup14472 жыл бұрын
You are great I must be plain...more grace to your elbow... I am your big fan 🤗
@techTFQ2 жыл бұрын
Thank you so much bro 😀 Appreciate your support
@fathimafarahna26332 жыл бұрын
Simply good 👍 You are helping so many ppl in their journey of learning.. keep it up. God bless✌
@techTFQ2 жыл бұрын
Thank you 😍
@hadibq2 жыл бұрын
Brilliant Thoufiq! great way of putting things! TY!
@techTFQ2 жыл бұрын
Glad you enjoyed it Hadi
@gaberuth92742 жыл бұрын
Fantastic Tutorial. Thank you for actually explaining what the code is doing!
@rohankhanna80062 жыл бұрын
Love the way you explained. Very easy to understand
@techTFQ2 жыл бұрын
Thank you Rohan 🙏🏼
@shuchivardan3752 жыл бұрын
This is awesome! I have been looking to achieve this in SQL for sometime now. Thanks for sharing!
@vamsykamal89322 жыл бұрын
Ethical Vlogging !! kudos. Disclosing sponsorships @ very beginning. Hard to find such practice these days.
@absolutedesi32322 жыл бұрын
please make a video on triggers , stored procedures and pragma as well , Thank you.
@techTFQ2 жыл бұрын
Sure will do
@hiajayy2 жыл бұрын
Please make videos on procedures and functions. Btw you are doing fabulous job.♥️
@techTFQ2 жыл бұрын
Thank you Ajay and sure will do
@pradyumnamohapatra2448 Жыл бұрын
so clearly explained Taufiq...your videos really do magic...thank you so much and keep posting such learning videos
@nisha61652 жыл бұрын
Hi, pls try to post complete vedio on stored procedures and thanks for this vedio
@techTFQ2 жыл бұрын
Sure Nisha will do it soon
@nisha61652 жыл бұрын
@@techTFQ Thanks you🙂
@Paragkini2 жыл бұрын
Excellent info... Have always been thinking of handling it through code. Thanks bro.
@techTFQ2 жыл бұрын
Glad this helped Parag :)
@suyash7450 Жыл бұрын
Watching your videos makes me Believe that Learning SQL is not that difficult as it seems when we learn from an online course or any other portal, your way of explaining concepts both theoretical and practical is very simple and even a beginner can learn with ease. keep doing the great work.
@krishna62962 жыл бұрын
Awesome! Thank you and keep posting more SQL tutorials.
@techTFQ2 жыл бұрын
Your welcome buddy and will do
@swamivivekananda-cyclonicm87812 жыл бұрын
Fanstastic explanation. You have gift of explaining concepts.
@sreejitchakraborty65752 жыл бұрын
Beautiful explanation. The way you explain concepts is crystal clear. Thanks for the amazing videos.
@techTFQ2 жыл бұрын
Thank you so much ☺️
@faizanwar_ Жыл бұрын
Thoufiq Sir , you are best in the business for sure
@techTFQ Жыл бұрын
thanks buddy
@ckarkhan9 ай бұрын
Hi Tofiq...once again you'e. knocked it out of the park! One question on window frames. In some databases, RANGE is not supported at all. Just ROWS is supported. How can we equate the behavior of ROWS to the same as RANGE? Best Regards!
@QelDoQ Жыл бұрын
Thank you! This explained things so clearly.
@cgittoes10 ай бұрын
Great video. Helped made a complex topic easy to understand and follow
@muthumariponmurugan71872 жыл бұрын
Hi Thoufiq, Thanks for your great job. I got a clear understanding of how to analyze a problem and its implementation. Looking forward to more such videos.Thank you
@techTFQ2 жыл бұрын
Glad it helped MuthuMari
@jaewonyang Жыл бұрын
Excellent explanation! Thank you very much.
@kaiyao51352 жыл бұрын
Thanks so much! very clear and details, love your tutorials!
@techTFQ2 жыл бұрын
Thank you :)
@johnsaleem4702 жыл бұрын
Thank you Tafiq for such a wonderful job. You are an excellent teacher, and I have learned SQL from your channel. Keep it up, and be good.
@deepapanneerselvam46182 жыл бұрын
Mind blowing explanation ..awesome😍😍😍.. Wonderful lectures .. I admired the way to explain the each and evry concepts from scratch to advancced level.
@vijaykumar-sy3uu Жыл бұрын
Thanks a Lot Thoufiq for Making great content😀 .Request:: Please make video on UDF
@lambdaboss55282 жыл бұрын
Another awesome video. Very well explained and easy to understand. Thanks.
@techTFQ2 жыл бұрын
Thank you so much ☺️
@gouravburnwal48832 жыл бұрын
Great video on Recusive functions in sql. please make a video on views and indexing.
@techTFQ2 жыл бұрын
Thank you Gourav 🙏🏼 I have already made a video on VIEWS.. as for index, will do it in the near future
@ytef9398 Жыл бұрын
Wooah.. you deserve many subscription. Many thanks, you save my week.. One question, is this work well for a big data row, or better using another method?
@sampadsaha14492 жыл бұрын
Hi, your explanations are really very helpful. can you please make a video on dynamic sql ?
@techTFQ2 жыл бұрын
Thank you and will consider it
@tyl96802 жыл бұрын
Which method is more efficient? (1) Recursive or (2) declare a temp table and use while loop to add the result to the temp table?
@kumarbabu12742 жыл бұрын
Nice video ..really appreciate..can you please suggest aany place where I can solve and learn advanced SQL queries
@ririraman72 жыл бұрын
Make a video on CROSSTAB in postgresql...or pivot in sql
@techTFQ2 жыл бұрын
Sure will do
@ririraman72 жыл бұрын
@@techTFQ Thank you veere. You came as angel in our lives. SQL💪
@readerssquare26602 жыл бұрын
Thank you somuch Can you do a video about stored procedures ?
@techTFQ2 жыл бұрын
Will definitely do very soon
@raghud5412 жыл бұрын
Thanks a lot for this wonderful explanation.
@techTFQ2 жыл бұрын
Your welcome 🙏🏼
@SankarJankoti2 жыл бұрын
Great work! Do you have any videos on union n union all complex ones
@LiveNobin2 жыл бұрын
Hi Thoufiq, Thank you for this video.
@techTFQ2 жыл бұрын
Your welcome buddy
@alanmiles6680 Жыл бұрын
Usually, great tutorials from him. However, for this particular tutorial, I had to Google, "What is a recursive query?" in the first place.
@jerilcj95862 жыл бұрын
well explained something complex. Thanks
@naveenkumark6093 Жыл бұрын
Hi Toffiq, Really thank you for the great concept... I have one doubt..,(question-01) 1st iteration : n=1 2nd iteration: select 2 from t where 2
@ismailrana Жыл бұрын
Excellent, I really love your all videos.
@vasudevpatil2309Ай бұрын
Hi @techTFQ ...Can I use CTE within Recursive query? For example: I have Sub query which I am using in Iterative part of the query, so instead of having it as subquery can I define it as CTE and then use it in iterative part? I was trying this in Snowflake data warehouse and I was getting syntax error so need your guidance here.
@jaydeeppatidar41892 жыл бұрын
Very well explained! Thank you!
@techTFQ2 жыл бұрын
Glad it was helpful!
@vasireddyvishnu80122 жыл бұрын
Your videos are great . Please do videos on pl/sql also
@techTFQ2 жыл бұрын
Thank you bro and sure will do
@shankerm39592 жыл бұрын
Well explained and i find it useful. Thank you.
@mohitgoel3808 Жыл бұрын
Hi Thoufiq pls make a tutorial on Ceil, floor, Absolute value & while loop for SQL if it is possible for you..
@ParamjeetBhambra Жыл бұрын
Hi Thoufiq. I have a question on using recursive CTE on multiple tables. Please advise where can I post that question. I would really appreciate your help. Thanks.
@spandanalakkakula67062 жыл бұрын
Good work.. Thank you for all the videos you upload. Can you make a video on the "find interview candidates leetcode (1811)" problem.
@techTFQ2 жыл бұрын
Noted, will consider it
@callravik2 жыл бұрын
Let us see 1st problem. For the 1st iteration, we know there is 1 row , so for the 2nd iteration, it would be n + 1 = 1 + 1 = 2. Now for the 3rd iteration, we have row 1 and row 2, would n + 1 operates only on the latest row which is 2, and ignores the 1st row? Or else for each execution all the rows would be incremented by 1 which is wrong.
@sindhuridevatha83832 жыл бұрын
Very informative and nice explanation
@cooldwnload2 жыл бұрын
Great work to bring in all concepts 👍
@techTFQ2 жыл бұрын
Thanks a lot 😊
@yash11523 ай бұрын
25:39 add "H.name" in select clause in line 7
@pranjalybakshi48978 ай бұрын
Hi thoufiq.... I m writing similar query in GBQ. Not sure which syntax pattern to follow
@vikassrivastava70812 жыл бұрын
Hi sir , Can we expect a comprehensive tutorial on oracle sql and plsql In near future? Big fan of ur way of explaining these concepts 👍
@techTFQ2 жыл бұрын
generally I do not want to make a video specific to any RDBMS. Since SQL is an ANSI standard, I prefer to cover SQL concepts which can be applicable to any RDBMS. With this in mind, I may do a complete SQL tutorial in the future. For now, I will be conducting LIVE SQL Course from beginning to advance level starting next month on Lighthall. Will announce it soon on KZbin and LinkedIn
@techTFQ2 жыл бұрын
You can find the link in my channel about section
@kokarao48744 ай бұрын
Very detail explanation
@anjali.8296 Жыл бұрын
could you please tell what is the difference between connect by clause and recursive ..same series or hierarchy data we can also print using connect by clause
@shradarai1068 Жыл бұрын
sir i didn't get the purpose of 'union' and 'lvl' functions here, could you please make a video on these two things.