Simple Recursion in SQL

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 56

  • @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

  • @piiner4815
    @piiner4815 6 лет назад +14

    12:00 was the key moment, thanks doug

  • @ethansanabria2892
    @ethansanabria2892 5 лет назад +5

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

  • @tafarir9119
    @tafarir9119 4 года назад

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

  • @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.

  • @krehkop11
    @krehkop11 4 года назад +3

    Finally, someone I can understand. Great job!

  • @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

  • @ajlestrad
    @ajlestrad 5 лет назад +1

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

  • @chand0503
    @chand0503 4 года назад +1

    Very helpful!! Thank you so much

  • @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

  • @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

  • @MikelNaUsaCom
    @MikelNaUsaCom 6 лет назад

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

  • @mads2k5
    @mads2k5 6 лет назад

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

  • @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

  • @aRtUr0c
    @aRtUr0c 4 года назад +1

    thanks!

  • @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

  • @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?

  • @djordjemilenkovic96
    @djordjemilenkovic96 4 года назад

    How can be done recursion delete for this example?

  • @adreamer9999
    @adreamer9999 6 лет назад +1

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

  • @aravindm5848
    @aravindm5848 6 лет назад +2

    good explanation!

  • @surajlal5800
    @surajlal5800 7 лет назад

    Hi, just wondering can i get this code please

  • @bojandanon2037
    @bojandanon2037 5 лет назад

    Superb video, 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....

  • @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

  • @firdausyangga1328
    @firdausyangga1328 6 лет назад

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

  • @nelseify
    @nelseify 5 лет назад

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

  • @yashkaliapiano
    @yashkaliapiano 5 лет назад

    thanks you did a good job explaining the key concept

  • @Kangsemo
    @Kangsemo 5 лет назад

    very good explaned and helped me alot, thank you

  • @DidierVerscheure
    @DidierVerscheure 5 лет назад

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

  • @zanarkandmusic
    @zanarkandmusic 5 лет назад

    Great explanation. Thanks =)

  • @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.

  • @neerajbhanot7511
    @neerajbhanot7511 6 лет назад

    thanks for the tutorial. It was really helpful

  • @Dawa202
    @Dawa202 7 лет назад

    Thanks Doug this was a great explanation

  • @kungu123
    @kungu123 5 лет назад

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

  • @hmmm1435
    @hmmm1435 5 лет назад

    No link to the code?

  • @pereteatcuadelina5131
    @pereteatcuadelina5131 6 лет назад

    Thank you for a nice video and good explanation!

  • @matthewtuell9335
    @matthewtuell9335 4 года назад

    I can actually visualize how recursion works now. Thanks!

  • @НиколайЩекин-и9ъ
    @НиколайЩекин-и9ъ 5 лет назад

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

  • @ChaimMosheStern
    @ChaimMosheStern 5 лет назад

    wow simple & to the point

  • @Rauly4557
    @Rauly4557 4 года назад

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

  • @VitalyBelenky
    @VitalyBelenky 6 лет назад

    Thanks Doug!

  • @josefhuber2401
    @josefhuber2401 4 года назад

    great

  • @sf11691
    @sf11691 5 лет назад

    Great explanation, thanks!

  • @MatthiasBloch
    @MatthiasBloch 7 лет назад

    FIRST!

  • @vesperannstas
    @vesperannstas 6 лет назад

    This is exactly what I needed. Thank you!

  • @michelli88
    @michelli88 6 лет назад

    wow, very good explanation! Thankyou

  • @uppuharichandan961
    @uppuharichandan961 6 лет назад

    Thanks alot it's wonderful video

  • @arpitbhatnagar2228
    @arpitbhatnagar2228 7 лет назад

    Thank you!

  • @blackcrowartistry
    @blackcrowartistry 6 лет назад

    Great explanation!

  • @muhammadarqam1741
    @muhammadarqam1741 5 лет назад

    single video with multiple ads. fed up. disgusting