Simple Recursion in SQL

แชร์
ฝัง

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

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

    You're very good at explaining, definitely an excellent teacher! Thank you.

  • @piiner4815
    @piiner4815 6 ปีที่แล้ว +14

    12:00 was the key moment, thanks doug

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

    Thank you so much, this is exactly what i needed for my job. Infinitas gracias from Mexico

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

    Here's the link to the code in his blog douglaskline.blogspot.com/2016/06/simple-recursion-in-sql-with-common.html

  • @tommyh4137
    @tommyh4137 7 ปีที่แล้ว +2

    I appreciate the video. You did a good job of explaining everything. Maybe next time go through how it works within the code of the recursion kind of like debugging mode so we can see how the process works within the sql code.

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

    I finally get this concept thanks to this video. Many thanks

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

    I can actually visualize how recursion works now. Thanks!

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

    Very helpful!! Thank you so much

  • @adreamer9999
    @adreamer9999 6 ปีที่แล้ว +1

    Great explanation and sql code walk-through. Thanks Doug!

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

    Thanks for the very good explanation. I really helped me saving a lot of hours.

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

    thanks you did a good job explaining the key concept

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

    My brain hurts from grasping this concept. Your video is very helpful though.

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

    Thanks Doug this was a great explanation

  • @НиколайЩекин-и9ъ
    @НиколайЩекин-и9ъ 5 ปีที่แล้ว

    Thank you for the video, it added a lof of clarity=)

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

    wow simple & to the point

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

    This is exactly what I needed. Thank you!

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

    Superb video, thanks :)

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

    Great explanation, thanks!

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

    Thanks Doug!

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

    Great explanation. Thanks =)

  • @aravindm5848
    @aravindm5848 6 ปีที่แล้ว +2

    good explanation!

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

    thanks for the tutorial. It was really helpful

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

    wow, very good explanation! Thankyou

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

    thanks!

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

    Great explanation!

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

    Thanks alot it's wonderful video

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

    Thank you!

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

    Good example. No link to code in the description though. I can find examples using google, thanks!

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

    Maybe I'm being a bit slow, but the bit I'd still like to understand is why Fuller is returned to the result set when his 'ReportsTo' is null and the same field is linking the recursion via an inner join.

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

      don't worry, I've just seen it.... Level one is returned in the first union....

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

    How u create this recursive in sql code
    Like
    Create table employee
    I have to create 2 tables employees and boss or only employees

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

    Hello,
    how to get the Depth 2 of each employee?For example i have EmpID = 13 (Johnson) i want to get BossLastName = Fuller. The same query have to work with each employee, for example 11 (Kline) or maybee some employee in Depth level 100 should return the 2nd level Manager

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

    How can be done recursion delete for this example?

  • @claudiocerruti4036
    @claudiocerruti4036 5 ปีที่แล้ว +2

    Thanks a lot for this video. It helped me a lot. Where can I find the code? Thanks in advance

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

      douglaskline.blogspot.com/search?q=Recursion&m=1

  • @krehkop11
    @krehkop11 4 ปีที่แล้ว +3

    Finally, someone I can understand. Great job!

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

    Hi Doug,
    Nice tutorial video you had there. Where could we find the link to the sample of the code.
    with regards,
    chunchiat

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

    hey doug is it possible that when a parent have two references it gets some cash and then if that two persons have more 2,2 references then parent and granparent gets also and so on

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

    Hey Goug i want to ask something as we move from high to downward direction is it possible to move from downward to upaward direction

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

    Great explanation. But one query. What if we need to get the hierarchy for a specific employee ?

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

      You can limit results to just the employee of interest vin the WHERE clause

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

      @@DatabasebyDoug Yes resolved that based on your explanation. Your explanation really helped.

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

    really nice vid. What happens if ReportsTo has an entry? How can I edit the queries to make it nethertheless possible to execute?

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

    Hi, just wondering can i get this code please

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

    Great explanation - do you have a link for where i can find this code?

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

    Hi, Doug nice explanation! But, can i get the full code?

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

    No link to the code?

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

    Link to code: douglaskline.blogspot.com/search?q=Recursion&m=1

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

    FIRST!

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

    single video with multiple ads. fed up. disgusting

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

    very good explaned and helped me alot, thank you

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

    Thank you for a nice video and good explanation!

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

    great

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

    Fantastic! Thank you, I knew it must be an easier way to do this (it always is).