Part 3 How does a recursive CTE work

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 พ.ย. 2024

ความคิดเห็น • 180

  • @vedantictech
    @vedantictech 8 ปีที่แล้ว +81

    Hi Venkat,
    This is the best explanation that I came across about Recursive CTE. It will be a UNDERSTATEMENT to say "your tutorials are awesome or helpful" but rather I would say what ever I know of SQL server today is only because of your tutorials.
    I really owe a lot to you.
    Regards,
    Ayan

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  8 ปีที่แล้ว +8

      +Ayan Putatunda Thanks a million for taking time to give feedback. I am glad you found the videos useful.
      Free Dot Net & SQL Server videos for web developers
      th-cam.com/users/kudvenkatplaylists?view=1&sort=dd
      If you need DVDs for offline viewing, you can order them using the link below
      www.pragimtech.com/Order.aspx
      Code Samples, Text Version of the videos & PPTS on my blog
      csharp-video-tutorials.blogspot.com
      Tips to effectively use our channel
      th-cam.com/video/y780MwhY70s/w-d-xo.html
      Want to receive email alerts, when new videos are uploaded, please subscribe to our channel using the link below
      th-cam.com/users/kudvenkat
      Please click the THUMBS UP button below the video, if you think you liked them
      Thank you for sharing these links with your friends
      Best
      Venkat

    • @devilkiller2830
      @devilkiller2830 4 หลายเดือนก่อน

      Without recursive :
      Select emp.employeename,manager.employeename from Employee emp inner join Employee manager on emp.Managerid=manager.Employeeid

  • @rajeevvenkata2295
    @rajeevvenkata2295 4 ปีที่แล้ว +9

    Cant believe that you gave this wonderful explanation before 6 years (2020 currently). The best youtube video I've ever seen.

    • @MAli-wm7vi
      @MAli-wm7vi หลายเดือนก่อน

      2024 and still best

  • @isasharifov1850
    @isasharifov1850 3 ปีที่แล้ว +2

    Hi Venkat, one word I can say about you, you are amazing man! Please dont stop SQL SERVER video tutorials

  • @UmeshKumar-ox3zp
    @UmeshKumar-ox3zp 6 ปีที่แล้ว

    Dear Venkat, You are the best tutor ever exist on this planet!!

  • @Divinewind42
    @Divinewind42 4 หลายเดือนก่อน

    This was the most comprehensive explanation i've seen on this subject. You're the boss of bosses!

  • @sabaamanollahi5901
    @sabaamanollahi5901 2 ปีที่แล้ว

    when I first saw the video I had doubts to watch it, because I thought it is like other videos and don't have a deep explanation of how recursive works, but after watching I saw the differences and how clearly you explained this complex subject. THANKS VERY MUCH

  • @zizu7755
    @zizu7755 8 หลายเดือนก่อน

    Absolutely wonderful explanation, Venkat. Even after 9 years there is nothing similar I found related to recursive CTE content.

  • @66sandeep66
    @66sandeep66 ปีที่แล้ว

    Absolutely crisp and clear! Kudos, Venkat!

  • @duytdl
    @duytdl 4 ปีที่แล้ว +1

    I love your videos. I've been getting into SQL and every time I search something complex (like this--recursive queries) I always find your video among the top and it easily stands out. Your videos have stood the test of time (I'm finding them helpful in 2020). Also your voice is amazing - calm and gentle. Awesome work!

  • @SriRam-bx7hc
    @SriRam-bx7hc 2 ปีที่แล้ว

    I searched for this topic one hour all tutorials are just hard to understand but yours make it easy ...
    Thanks...

  • @wkartchner
    @wkartchner 7 ปีที่แล้ว +4

    I wish I had seen this tutorial before my last interview.
    Thank you.

  • @alejoes
    @alejoes 3 ปีที่แล้ว

    By FAR the best explanation I have seen about a topic. Thank you sr.

  • @israilkarud9293
    @israilkarud9293 3 ปีที่แล้ว +1

    Tried many tutorials but this one is gem. God bless you Venkat. I have no words to admire you :)

  • @biswajitpradhan6121
    @biswajitpradhan6121 2 ปีที่แล้ว

    The way you describes is just best . And you are Doing all the things for free . Thank you for all these Sir . 🙂

  • @ManishPatel-rs6dm
    @ManishPatel-rs6dm 3 ปีที่แล้ว

    The best explanation on Recursive CTE, step by step !!

  • @riyankabhowmick697
    @riyankabhowmick697 8 ปีที่แล้ว

    Truelly... I must say i became fan of yours and your tutorial.. To be very honest first time i understand preperlly this recursive CTE... 1000 Thumbs uppppp for this vedio from my side...

  • @Tall-Cool-Drink
    @Tall-Cool-Drink 6 ปีที่แล้ว

    I love your videos. They are the best on the internet.

  • @abhjitde
    @abhjitde 9 ปีที่แล้ว +1

    simply superb, i learnt sql in jus 2days...hatsoff bro..keep up the good work

  • @Luke-bl2qk
    @Luke-bl2qk 7 ปีที่แล้ว +2

    I had a few questions after watching your video: Recursive CTE in SQL Server part 51, but this made the concepts easier to understand. Thank you for the great videos, Venkat!

  • @krismaly6300
    @krismaly6300 10 ปีที่แล้ว +1

    Crystal clear explanation. Appreciate all your efforts in educating the community.

  • @mcsquarewolf9557
    @mcsquarewolf9557 28 วันที่ผ่านมา

    Bravo, now that’s how you break it down. Impressive. Thank you

  • @vikashvishwanathan7814
    @vikashvishwanathan7814 5 ปีที่แล้ว

    This is exactly what I wanted to know when I watched the previous video and I was really happy when I just jumped into this video !!

  • @richhertz6086
    @richhertz6086 6 ปีที่แล้ว

    Best recursive CTE explanation ever! Thanks!

  • @furkotikoo4216
    @furkotikoo4216 4 ปีที่แล้ว

    thaaaaannnnkkk youuuuuu very much.. The way of your explanation with your soft voice is perfect...

  • @dhratiacharya3676
    @dhratiacharya3676 7 ปีที่แล้ว +1

    Your way of explaining is amazing. Please keep posting all the SQL interview Q&A.

  • @fy687
    @fy687 3 ปีที่แล้ว +1

    The best CTE explanation

  • @djnature1741
    @djnature1741 2 ปีที่แล้ว

    Best explanation. Great Job and Thank you Venkat.

  • @manuelgmra
    @manuelgmra 7 ปีที่แล้ว

    A simple way to explain a complex feature.
    Thanks a lot

  • @snackymcgoo1539
    @snackymcgoo1539 6 ปีที่แล้ว

    Anchor and recursive member... perfect, thanks for the walk through. Excellent line by line example.

  • @foremost6233
    @foremost6233 2 หลายเดือนก่อน

    Astig ng mga tutorial mo pre, more power sa channel mo ne, salamat!

  • @giovanni-cx5fb
    @giovanni-cx5fb 4 ปีที่แล้ว

    This video is a treasure. It was massively helpful, thank you.

  • @lukasavic18
    @lukasavic18 2 ปีที่แล้ว

    absolutelly best explanation ever

  • @cleversachin
    @cleversachin 3 ปีที่แล้ว

    Kudos, one of the best in youtube

  • @laxmisagar8189
    @laxmisagar8189 8 ปีที่แล้ว

    Sooooperb explanation..... watching part2 and even all the pre-requisites of part2 of this lecture series i was confused how does a recursive CTE work but after watching this part3 am crystal clear with this concept thank you so much sir..:)

  • @paulmealing2977
    @paulmealing2977 7 ปีที่แล้ว

    I'm finally understanding recursive ctes. Thank you.

  • @skabdulrahim4318
    @skabdulrahim4318 3 ปีที่แล้ว

    Sir Best explanation Recursive CTE. Best video (y).

  • @suganyasmk92
    @suganyasmk92 5 ปีที่แล้ว

    Wow... This s useful video.. U r explaining clearly.. Still no one can do explain like you... Thank you so much of your explanation.. Now I clear abt the cute functionality

  • @akkiyethi
    @akkiyethi 7 ปีที่แล้ว +1

    Hi Venkat Sir,
    You are doing a great Job by helping us all learn the complex concepts in a very simple manner.
    I don't Google for oracle/SQL server concepts, I directly come to your youtube channel.
    Thanks a ton :)
    Very very helpful videos.

  • @azfar19
    @azfar19 4 ปีที่แล้ว

    Hi Venkat,
    Thank you for preparing these tutorials and videos. They have been very helpful in improving my understanding of the concepts. Concise and to the point with perfect explanation.

  • @mr.prasadyadav
    @mr.prasadyadav 2 ปีที่แล้ว

    Nice tutorial , Thank you Mr.Kudvenkat ❤️

  • @naveenreddy6023
    @naveenreddy6023 10 ปีที่แล้ว +1

    Saying simple thanks is not enough for you, i am Nil in sql before watching this Pragim technologies SQL videos, now m almost clear sql.

  • @karthikvyas8629
    @karthikvyas8629 5 ปีที่แล้ว

    Thank you very much Venkat , one of your best video, very complicated concept explained in a very understandable way .

  • @johnnguyen1655
    @johnnguyen1655 4 ปีที่แล้ว

    Yes finally I got recursion in sql. thanks!

  • @tejaswininandam6359
    @tejaswininandam6359 2 ปีที่แล้ว

    Thanks for the great explanation. This is best ever.....

  • @MalayKhandkar
    @MalayKhandkar ปีที่แล้ว

    wow this was super helpful!! Thanks a lot for explaining this in such simple way

  • @luismanueldiazbaron9588
    @luismanueldiazbaron9588 3 ปีที่แล้ว

    This explanation is perfect. Thanks!!!

  • @babencherian278
    @babencherian278 ปีที่แล้ว

    very nice explanation and would love your videos. Thanks Venkat

  • @ashishmukarne4917
    @ashishmukarne4917 6 ปีที่แล้ว

    short and clear explanation on recursive CTE execution,
    Thank you..

  • @soumyagupta9301
    @soumyagupta9301 5 ปีที่แล้ว +1

    Everything is fine but you have not explained how the join statement is leading to the recursion. You have explained the steps being performed one after another but the role of the join statement has been left unexplained. Otherwise, it is a very nice video.

  • @anindyabose5988
    @anindyabose5988 7 ปีที่แล้ว

    You are the best Venkat. Thanks

  • @devarakondasankararao3802
    @devarakondasankararao3802 5 หลายเดือนก่อน

    Nice Explanation ,Thank You Venkat Sir

  • @WaynezWorldz
    @WaynezWorldz 6 ปีที่แล้ว

    Excellent! A very good explanation of recursive CTE's!

  • @emilyyang3478
    @emilyyang3478 6 ปีที่แล้ว

    Thank you so much for all your tutorials, the most helpful I've ever seen and awesome for understanding! Looking forward to more series such as spark, ETL etc...

  • @orxanbabashov
    @orxanbabashov 7 ปีที่แล้ว

    Thanks a million..You are the best tutor !!!!

  • @PraBi12
    @PraBi12 6 หลายเดือนก่อน

    Your videos are gems.

  • @fishkenorian
    @fishkenorian 5 หลายเดือนก่อน

    Thank you very much!!! Explained very good. But the issue is - according to your explanation we have to know which employee is on the lowest position in the hierarchy, and we don't have any indication for it. Because if you will choose employee id arbitrary then it will stop at Null without running across all rows. But we have indication for the highest hierarchy - boss_id is Null. So it is better to start with them and reverse the join on.
    with recursive EmployeeCTE as (
    -- anchor
    select EmployeeId, EmployeeName, ManagerId
    from employees e
    where e.ManagerId is null
    union all
    -- recursive
    select e.EmployeeId, e.EmployeeName, e.ManagerId
    from employees e
    join EmployeeCTE eb
    on eb.EmployeeId = e.ManagerId
    )
    select *
    from EmployeeCTE

  • @yugeshkekre
    @yugeshkekre 9 ปีที่แล้ว +1

    Wonderful explanation for a concept which is not intuitive at all. Thanks a lot

  • @damiancollier5051
    @damiancollier5051 6 ปีที่แล้ว

    well done again Venkat, very clear

  • @emilyf2641
    @emilyf2641 7 ปีที่แล้ว

    Hi Venkat,
    Love your explanation of recursive CTE, wonderful! LOVE IT!

  • @desitrump
    @desitrump 4 ปีที่แล้ว

    Thx, now I understand how recursive cte works.

  • @surnameh7227
    @surnameh7227 3 ปีที่แล้ว

    What a good job explaining this! Thanks so much!

  • @dineshtulasiram4987
    @dineshtulasiram4987 10 ปีที่แล้ว +1

    Many thanks venkat ....awesome tutorials...

  • @rahmanfetrat2832
    @rahmanfetrat2832 2 ปีที่แล้ว

    that explanation was excellent
    thank you sir

  • @Persianchannel1
    @Persianchannel1 2 ปีที่แล้ว

    exceptional definitive explain, thank you

  • @devarakondasankararao3802
    @devarakondasankararao3802 5 ปีที่แล้ว

    Hi Venkat, good video to understand recursive cte ,thanks a lot for this

  • @krismaly6300
    @krismaly6300 10 ปีที่แล้ว +1

    Recursive functionality explained clearly

  • @Deepakkumar431
    @Deepakkumar431 9 ปีที่แล้ว +1

    Awesome.Thanks a lot for the great explanation.

  • @RC-nn1ld
    @RC-nn1ld 6 ปีที่แล้ว

    Fantastic explanation, I now finally understand it!

  • @prajwalsiwakoti9866
    @prajwalsiwakoti9866 11 หลายเดือนก่อน

    Excellent work Sir🙏

  • @ramachandransathishkumar6614
    @ramachandransathishkumar6614 10 ปีที่แล้ว +2

    Great Work Venkat

  • @alberthsu951
    @alberthsu951 7 ปีที่แล้ว

    Really detailed and amazing explanation. Thank you so much for the tutorials!!

  • @THIENDAYNEHIHI
    @THIENDAYNEHIHI 9 หลายเดือนก่อน

    a nice explanation ! thank you, i'm from Viet Nam

  • @mrajeshrk
    @mrajeshrk 9 ปีที่แล้ว +1

    Thank you Venkat. Very helpful.

  • @shahrozetariq3764
    @shahrozetariq3764 11 หลายเดือนก่อน

    Sir you are the best!

  • @frankietao1418
    @frankietao1418 9 ปีที่แล้ว +1

    Very good explanation. Thanks!

  • @girijesh-mca
    @girijesh-mca 10 ปีที่แล้ว +1

    thanks sir..this is very helpful tutorial......

  • @victortheimmoral
    @victortheimmoral 9 ปีที่แล้ว +1

    I find your videos very helpful

  • @ami4098
    @ami4098 ปีที่แล้ว

    Thanks for the great explanation

  • @sellamuthusrinivasan4370
    @sellamuthusrinivasan4370 4 ปีที่แล้ว

    Thanks a lot for your tutorials..

  • @khushboogupta4909
    @khushboogupta4909 6 ปีที่แล้ว

    Nicely explained , thanks n good job 👍

  • @yisauramon5775
    @yisauramon5775 10 ปีที่แล้ว

    Thanks for the video Venkat, kindly upload video on Application Deployment and FileSystemWatcher Class.God bless you.

  • @mahipalkamanchi
    @mahipalkamanchi 10 ปีที่แล้ว +2

    thanks you sir pl upload following concepts
    what covariance vs contravariance in C#
    How to Debug DLL C#
    Paging in SQL

  • @relook5366
    @relook5366 4 ปีที่แล้ว

    Crystal clear! Thank you!

  • @HomerBartStewie
    @HomerBartStewie 2 ปีที่แล้ว

    Great explanation. Thank you!

  • @coding7241
    @coding7241 ปีที่แล้ว

    sir thankyou so much ..........for the explanation

  • @nehat1874
    @nehat1874 4 ปีที่แล้ว

    Hello Venkat,
    I have learned a lot and in a much simpler way from your tutorials. I want to request you to help me understand how the levels are assigned to the hierarchy. Thank you :)

  • @charavegabrown
    @charavegabrown ปีที่แล้ว

    I would have liked it to be a bit more visual, showing the graphs at each step. Thanks for the effort though.

  • @RC-nn1ld
    @RC-nn1ld 6 ปีที่แล้ว

    Best example on the net thanks

  • @I677000
    @I677000 9 ปีที่แล้ว +3

    Thenx! The best explanation of CTE

  • @Eisenhiem24
    @Eisenhiem24 9 ปีที่แล้ว +1

    Absolutely brilliant!!!!!! Thanks a million

  • @vamsikrishna9516
    @vamsikrishna9516 5 ปีที่แล้ว +1

    Hi , nice explanation
    In my case first select statement gives multiple rows and I have the ID of manager not the employee
    Example : I have ,ID of Ben as input and want to find all child employees
    I would need some help with that , could you pl guide me ?

  • @dhavalprajapati21
    @dhavalprajapati21 2 ปีที่แล้ว

    Hi Venkat, thank you for making such easy to understand videos.
    Could you please make one video on recursive CTE to handle the case when employeeID and ManagerID are same?

  • @psdeokar
    @psdeokar 7 ปีที่แล้ว

    Dear sir ,
    The videos which you are uploaded is best of best.
    Requested to upload query optimization, complex query, performance tuning , trace,
    recovery of database , etc...
    video of real time example

  • @harishbabu8819
    @harishbabu8819 2 ปีที่แล้ว

    superb explaination kep it up

  • @anirvansen6591
    @anirvansen6591 5 ปีที่แล้ว

    Awesome explanation

  • @pawanks7394
    @pawanks7394 7 ปีที่แล้ว +1

    Nice Video !!! I Like this and please make another video how to retrieve organization structure in reverse order. Example: By passing manager_id it should return list of subordinates.

  • @yuvarajarasu
    @yuvarajarasu 6 ปีที่แล้ว

    Thanks for the video. 👍
    I need to understand , how it works if anchor part or recursive part returns more than one row.🤔

  • @user-dn8lr8ye8k
    @user-dn8lr8ye8k 6 ปีที่แล้ว

    Best explanation. Thanks.

  • @gokulsukumar1699
    @gokulsukumar1699 10 ปีที่แล้ว +1

    Excellent. Thank you sir.

  • @avadhoot1100
    @avadhoot1100 7 ปีที่แล้ว

    thanks you are the Best person ..........