SQL | Recursive CTE | Practical Examples and 5 Use Cases | Sequences | Hierarchies

Поділитися
Вставка
  • Опубліковано 16 січ 2025

КОМЕНТАРІ • 39

  • @LearnatKnowstar
    @LearnatKnowstar  2 роки тому +4

    Register at the below link to get US $100 off for Coursera Plus membership between Sep 8 - Sep 29, 2022.
    The Coursera Plus membership gets you access to unlimited courses and unlimited certifications!
    imp.i384100.net/Ke51on

    • @hv0032113
      @hv0032113 2 роки тому +1

      This is a very good option if you are committed to completing multiple training and certifications in a year. Coursera certificates really matter and can give an edge to tour resume.

  • @TomaszBI
    @TomaszBI 3 місяці тому

    Brilliant! Best video on this subject!

  • @DanPrince2010
    @DanPrince2010 2 роки тому

    Very helpful! Thank you for breaking it down. This was exactly what I needed to understand CTEs. :)

  • @hv0032113
    @hv0032113 2 роки тому +1

    Great topic. Superb explanation. You deserve more subscribers !

  • @kristyowens2284
    @kristyowens2284 2 роки тому +1

    very clearly explained and excellent examples. Looking forward to more detailed videos like this 👍

    • @LearnatKnowstar
      @LearnatKnowstar  2 роки тому

      Thank you. More full course videos coming soon!

  • @MethodOverRide
    @MethodOverRide 2 роки тому

    Great video! Exactly what I was looking for to refresh myself on recursive ctes. Your videos are always helpful. 🤗

  • @nikolaybaranov2213
    @nikolaybaranov2213 2 роки тому

    Thank you! Great case with hierarchy!

  • @mangesh22121992
    @mangesh22121992 Рік тому

    At 13:04 stream time, Please let me know why output has "Z" included when we already mentioned ""< ''Z" " (should this not exclude "Z")?

  • @ravishmahajan9314
    @ravishmahajan9314 2 роки тому

    excellent video.

  • @itikalaneelu9126
    @itikalaneelu9126 Рік тому

    excellent explaination

  • @b.k.france78
    @b.k.france78 11 місяців тому

    Thank you so much

  • @designanddecor8964
    @designanddecor8964 2 роки тому

    Very helpful. Thanks.

  • @bprasad1950
    @bprasad1950 2 роки тому +1

    Hi Ma'am
    By using of this cte .
    I need rows starts like this type so how to do it..
    001,002,003,...010,011,012,013,...,100

  • @riddlex
    @riddlex 2 роки тому +1

    This is an excellent way to generate date range, however, I don't know if it would work in PostgreSQL/MySQL. A question was asked to me during an interview where the Recursive CTE was to be used. The question was to find the number of Sundays in the month of August 21. I didn't know how to approach it then, but Recursive CTE along with DATENAME function would have done the job.

    • @LearnatKnowstar
      @LearnatKnowstar  2 роки тому +1

      Thank you for sharing the scenario. We will cover it in one of our upcoming videos 🙏

  • @JulieWork
    @JulieWork Рік тому

    This tutorial is amazing! For example, with the auto calendar, given that there's the DECLARE statement at the beginning, is there a way to turn this into a View so it can simply be run when needed? Or, must it be a Stored Proc? Thanks.

  • @briandennehy6380
    @briandennehy6380 2 роки тому

    Thanks for this

  • @JulieWork
    @JulieWork Рік тому

    So, it's basically a while loop but in SQL format. I've been wanting to find out how to do for loop or while loop in SQL for a very long time! Thanks!

  • @dasarivenkatachalapathi6311

    Great explanation, can you please give information regarding semicolon in CTE

    • @LearnatKnowstar
      @LearnatKnowstar  Рік тому

      Thank you. You can check out the video below - It has important tips about CTEs.
      ua-cam.com/video/e5WN-_7t7SY/v-deo.html

  • @mankala5895
    @mankala5895 Рік тому

    I have a usecase as below
    There are n number of nodes connected to each other,
    Every output link of a node matches with the input link of another node
    I have to make them join based on inputlinkid and outputlinkid
    But the challenge here is I don't know how many nodes a flow has , so I have to create columns dynamically where each column represents a node name.
    Can you please help me how to create dynamic columns while running recursive cte

  • @hasanmougharbel8030
    @hasanmougharbel8030 2 роки тому

    hello there, god bless your efforts..I have a simple enquiry as new sql learner.
    How are CTEs different from temporary tables?
    Thanks for taking care of this.

    • @LearnatKnowstar
      @LearnatKnowstar  2 роки тому +1

      CTEs are not physical tables. They are temporary result sets. Temp tables normally refer to temporary physical tables created in tempdb database.

  • @darbardarbar9460
    @darbardarbar9460 2 роки тому +1

    Please make a video two parts 12 minutes

    • @LearnatKnowstar
      @LearnatKnowstar  2 роки тому

      Sure, will be posting shorter videos as well 👍