SQL With - How to Use the With (CTE) Statement in SQL Server - Quick Tips Ep35

Поділитися
Вставка
  • Опубліковано 22 гру 2024

КОМЕНТАРІ • 34

  • @aaronmarks7912
    @aaronmarks7912 6 років тому +3

    This is the second video I've watched of yours. Great work! I feel like these videos are explaining concepts to me like I am 5 and that is EXACTLY what I need. Thanks for all your hard work!

  • @mirandaevalyn572
    @mirandaevalyn572 5 років тому +56

    You're doing a lot of stuff without giving any explanation of why you're doing it that way, or what the WITH statement actually means. People watching this video will learn how to memorize this specific example, but not learn the concepts.

    • @basilbench9438
      @basilbench9438 4 роки тому +1

      Exactly, I got confused starting at 4:50

  • @daphnetarango775
    @daphnetarango775 5 років тому +3

    Hi. When would you use a sub-query versus a with statement? Thank you.

  • @RichardCooperrjc
    @RichardCooperrjc 9 років тому +1

    Excellent free video! Very easy to follow can't wait to see your other videos! :-) I am a SQL developer and SSIS, SSRS along with BI development.

  • @desisto007
    @desisto007 4 роки тому +1

    Thanks for explaining that. Could you clarify how is that different from a view? Is that the same?

    • @TallShawnNetwork
      @TallShawnNetwork 4 роки тому

      Thats what I want to know

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

      I believe a view is just a saved query with a name that you can reference

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

    Very helpful.. Now i can write my own CTE with out help..!!

  • @Hufsa
    @Hufsa 4 роки тому

    Great explanation, exactly what I needed to know, I decided to use a subquery instead of the WITH statement, subquery looked easier and nicer to me

  • @Oralden
    @Oralden 7 років тому

    Good job, everything I am looking at are WAY to complex. I am just starting with cte's and this was perfect! Thanks man! This makes sense now after watching your video. I don't even know why Microsoft has examples. . . they are always all over the place and usually contain way to much data.

  • @angathanparamasivam3057
    @angathanparamasivam3057 9 років тому +2

    Wow. It is a good explanation. Cristal clear

  • @joeyblue1
    @joeyblue1  12 років тому +1

    You're welcome. I'm glad it helped.

    • @fifiba3128
      @fifiba3128 8 років тому

      Joey Blue Merci beaucoup :)

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

    I’m a bit confused on this one. Why even use WITH when you can just put the column names after the select clause?

  • @panajota3985
    @panajota3985 6 років тому +1

    Perfect explanation!!
    Thanks a lot :)

  • @orevaokaruefe3027
    @orevaokaruefe3027 3 роки тому

    Thank you very much!!!

  • @nadiasaidmohammed8669
    @nadiasaidmohammed8669 6 років тому

    Hi Joey, in 4:27 how did we figure out the inner join "on cteEmployee.manager=e.employee_number without referring to an ERD where you can easily see the common connections between tables? Thank you in advance.

    • @joeyblue1
      @joeyblue1  6 років тому

      Hi Nadia,
      Based on experience, I could tell that the manager column stored the employee number of the manager. It is common to have this relationship and to do a self-join. Sometimes you will have an actual foreign key and primary key relationship that tells you the two columns are related. Many times, you have to guess and then check to make sure the results make sense.

  • @NazimGuliyev
    @NazimGuliyev 5 років тому

    Thank u, very helpful content.

  • @vamsi8669
    @vamsi8669 10 років тому

    Thank for Sharing. A very good explanation.

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

    Thank you

  • @vitoramorim6589
    @vitoramorim6589 3 роки тому

    Like from student Brasil.

  • @youngwise14
    @youngwise14 12 років тому

    Nice video, thanks for posting this.

  • @Kubes82
    @Kubes82 5 років тому

    Thanks joe

  • @JerveyIT
    @JerveyIT 11 років тому

    Thanks for sharing, I found it helpful.

  • @bisratgezahgne914
    @bisratgezahgne914 5 років тому

    Thanks a lot

  • @gilmaxter
    @gilmaxter 7 років тому

    Is this a Ms SQL server example ?

  • @9854Axt
    @9854Axt 12 років тому

    great
    thanks man you saved my life :)

  • @omeruludag7350
    @omeruludag7350 7 років тому

    this code very nice thaks

  • @Xghasakq
    @Xghasakq 4 роки тому +4

    i've been using nested queries for ages. I've been living a lie

  • @goodsirknight
    @goodsirknight 8 років тому

    thanks Joey
    be mine!

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

    Way too fast.

  • @NaraTunes
    @NaraTunes 3 роки тому

    Thanks a lot!