SQL CTEs (Common Table Expressions) - Why and How to Use Them

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

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

  • @Grond73
    @Grond73 Год назад +10

    This is such a clear, concise explanation for CTEs. Thank you so much!!!

  • @apamwamba
    @apamwamba 10 дней назад +1

    The idea behind CTE is very clear and you have explained it very well. It just becomes tricky when this concept of recursion comes in.. Otherwise very good job done!!

    • @DatabaseStar
      @DatabaseStar  9 дней назад

      Thanks! Yes, it is trickier with a recursive CTE.

  • @ministerbo3025
    @ministerbo3025 11 месяцев назад +2

    You know how to break this down so anyone (I'm 70) can learn. I will be back to your site to learn & grow. Thank you for sharing. East Coast Sr

  • @andynelson2340
    @andynelson2340 Год назад +4

    Amazing. A+ explanation. My only feedback might be in your first example show the results of the subquery first, then show the whole query second. Cheers!

    • @DatabaseStar
      @DatabaseStar  Год назад

      Thanks! That's a good point, I'll keep that in mind for future videos.

  • @diamondsandlipgloss
    @diamondsandlipgloss 3 месяца назад +1

    this really helped me learn about CTEs, so thank you very much!!! Now I just need to learn what "recursive" means and find your video on hierarchical queries.

    • @DatabaseStar
      @DatabaseStar  2 месяца назад

      Glad it was helpful! I can make a video about recursive in the future.

  • @felipetaborda5943
    @felipetaborda5943 Год назад +1

    Thanks. Great video!

  • @jeremynx
    @jeremynx 24 дня назад

    Thanks, very helpful

  • @GDchanaka-he7qr
    @GDchanaka-he7qr Год назад +1

    great explanation. Love it.

  • @siddharthapenchala8146
    @siddharthapenchala8146 2 года назад +1

    Good Explanation.
    Sir, Kindly make a video on Recursive Subquery Factoring in oracle. Thank you!

    • @DatabaseStar
      @DatabaseStar  2 года назад

      Thanks! Sure I can make a video on that.

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

    • @DatabaseStar
      @DatabaseStar  Год назад +2

      Thanks! I cover the difference between CTEs and Temp Tables in this video.

  • @MuhammadFahreza
    @MuhammadFahreza 3 месяца назад

    What is temp table ? does it mean View Table ?

    • @DatabaseStar
      @DatabaseStar  2 месяца назад

      It’s a table you can create to store data that you can refer to later. It’s like a view but it stores data and only exists for the duration of your session.

  • @tamiratabebe6623
    @tamiratabebe6623 10 дней назад

    Thank so mach to day is Ethiopia new year that means 2017.

  • @vivekkumarmishra2433
    @vivekkumarmishra2433 Год назад

    please make a sequence of video play list

    • @DatabaseStar
      @DatabaseStar  Год назад

      I've got a few playlists on my channel, which I am always adding to.

  • @alaeeddinehajji
    @alaeeddinehajji 2 года назад

    Great

  • @MiningForPies
    @MiningForPies Год назад +1

    A CTE cannot have indexes and constraints *beyond what already exists*