SQL CTE (Common Table Expression) Full Guide | WITH Clause |

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 พ.ย. 2024

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

  • @DataWithBaraa
    @DataWithBaraa  หลายเดือนก่อน +5

    If you want to see more videos like this, Subscribe for more data tutorials like this :) bit.ly/3GiCVUE
    TIMESTAMPS
    ---------------------------------
    00:00 Intro
    00:26 What is CTE?
    06:33 Why CTE?
    11:29 How DB Execute CTE?
    13:45 CTE Types
    14:20 Standalone CTE
    23:02 Multiple CTE
    31:06 Nested CTE
    44:44 Best Practices CTE
    47:26 Recursive CTE
    01:14:55 CTE Summary
    Enjoy

  • @DivyYadav-hg2js
    @DivyYadav-hg2js 18 วันที่ผ่านมา +3

    bara a full sql real life project after completing this course will boost our confidence

  • @Spicycaat
    @Spicycaat หลายเดือนก่อน +9

    For the past few days, I've been struggling to learn this topic (CTE). I watched many tutorials, but they somehow didn’t benefit me. Just now, your video appeared on my homepage. You don’t know how much your videos and content are helping us. You're indeed putting in great effort. May Allah bless you with the strength to keep up this amazing work.
    P.S. I’m also in the middle of your Tableau course, and honestly, I have no words to explain that masterpiece. You truly are a gem, sir.

    • @DataWithBaraa
      @DataWithBaraa  หลายเดือนก่อน

      You're very welcome! Glad it was helpful ❤️

  • @DivyYadav-hg2js
    @DivyYadav-hg2js 18 วันที่ผ่านมา +2

    how can someone be so good at teaching its unbelievable

  • @barbmarques2022
    @barbmarques2022 11 วันที่ผ่านมา +1

    I'm amazed at how Baraa can take a complex subject such as Nested or Recursive CTEs and break them down into logical steps -- so easy to understand. Thank you!

    • @DataWithBaraa
      @DataWithBaraa  11 วันที่ผ่านมา

      Glad you liked it!

  • @kanchannatekar5798
    @kanchannatekar5798 หลายเดือนก่อน +2

    You are the best Teacher. I have never understood Advance sql concepts so well uptill now .Thank you so so much.

  • @mahmoudalsayyad90
    @mahmoudalsayyad90 หลายเดือนก่อน +1

    شكرا يا براء ❤، لو تكمل في سلسلة SQL problem solving!

  • @vasilkagenova6266
    @vasilkagenova6266 หลายเดือนก่อน +1

    The best explanation for CTE. Thank you.

  • @MrAledez
    @MrAledez หลายเดือนก่อน +2

    Man you're the best teacher ever!

  • @umesairam1391
    @umesairam1391 หลายเดือนก่อน +2

    This explanation was super clear! Thanks for breaking it down so well. Please keep making these awesome videos!

  • @AnilKumar-dt7ns
    @AnilKumar-dt7ns 25 วันที่ผ่านมา +1

    Hi Barar
    detail explains ,you are incredible, keep rock
    Thank you

  • @fasihrehman2555
    @fasihrehman2555 หลายเดือนก่อน +2

    Thank you for making CTE simple to understand.

  • @RAGHU-c2p
    @RAGHU-c2p หลายเดือนก่อน +2

    Thank you for your TH-cam explanation! I'd love to see more videos from you covering both basic and advanced Python topics. Your explanations are clear, and I really appreciate them, and I believe you’ll continue to do great work.

    • @DataWithBaraa
      @DataWithBaraa  หลายเดือนก่อน

      Glad you like my videos, I will do that!

  • @shivavenna315
    @shivavenna315 หลายเดือนก่อน +2

    Hey Baraa, great content. I also use temp tables instead of CTE's for more accuracy. if possible, please create a video explaining the difference between CTEs and TEMP tables and performance techniques between temp and cte's? I really appreciate any help you can provide. your videos are always great to deep dive and cover missing points.

  • @jbjsb
    @jbjsb หลายเดือนก่อน +1

    Thank you so much Baraa ! The best teacher

  • @farmandfood7984
    @farmandfood7984 หลายเดือนก่อน +2

    I've been waiting for this. Omg. Thank you. Let me start.

  • @jephersonventura7510
    @jephersonventura7510 หลายเดือนก่อน +1

    Baraa, I been waiting days for this video and you did not dissapoint! I keep commenting over and over showing love cause I truly appreciate you sharing your wisdom with us.
    Cheers from the USA!

    • @DataWithBaraa
      @DataWithBaraa  29 วันที่ผ่านมา

      Thank you soooo much for your kind comment and your support for me, I am happy that I met your expectation :)

  • @AjAj-yg9vc
    @AjAj-yg9vc หลายเดือนก่อน +1

    Great and easy to follow explanation. You are awesome, Baraaa!

  • @Toyahan43
    @Toyahan43 28 วันที่ผ่านมา +1

    BARAA! You are amazing as always. I always pray that your channel gets a lot of subscribers and you get the recognition that you deserve In sha Allah

    • @DataWithBaraa
      @DataWithBaraa  26 วันที่ผ่านมา

      Thanks !!! You are amazing too for leaving this wonderful comment, thanks 🙏

  • @chandrimanalyst
    @chandrimanalyst หลายเดือนก่อน +2

    Hello sir I'm chandrim Dey sajjan I'm the biggest fan of your content and also your voice, I watch your every contact and I learn full tableau in your video , and also SQL, I'm a Data analyst inshusist not get a job but hope it's happening. Love from India ❤❤❤🇮🇳

  • @farhanb7022
    @farhanb7022 13 วันที่ผ่านมา +1

    YOU ARE ANGEL 😇

  • @priyanka_kaduluri
    @priyanka_kaduluri หลายเดือนก่อน +2

    Hi Baraa!!! Amazing explanation on CTEs!!! Requesting you to post a series on DATABRICKS

  • @poojabihani-m9d
    @poojabihani-m9d หลายเดือนก่อน +2

    Heyy Bara I become your fan, the way you teach, they way you clear all the concepts, thank you so much!!

    • @DataWithBaraa
      @DataWithBaraa  หลายเดือนก่อน +1

      You're very welcome!

  • @nitinrawat-g6t
    @nitinrawat-g6t หลายเดือนก่อน +2

    thanks baraa for such a high quality only you can explain the complex topic easily

  • @debannitachattaraj25
    @debannitachattaraj25 15 ชั่วโมงที่ผ่านมา

    Baraa the way you explain is just amazing , I want to have a playlist of python course for data analyst as well

  • @exhaustive_the_sixth
    @exhaustive_the_sixth หลายเดือนก่อน +3

    Can't wait for SQL/Python for data engineering. And very good video, sir!

    • @godbhaigod
      @godbhaigod หลายเดือนก่อน

      Are you releasing course???😮

  • @godbhaigod
    @godbhaigod หลายเดือนก่อน +2

    This premium content ❤❤❤❤

  • @rajandayma
    @rajandayma หลายเดือนก่อน +2

    Woohoo! Finally, you’re back! Thanks, Bara, for the new video. I’m a new subscriber to your channel, and I just wanted to say thank you for the excellent quality of your content. You’re the only one covering all the advanced SQL topics, so huge thanks, bro! May God bless you!
    Whenever I see students struggling with advanced SQL, I’m always redirecting them to your channel. Keep it up, bro!
    I’ve got two quick questions if you don’t mind:
    Any plans to create videos on data engineering stuff like Data mining, data warehouse, Apache, Hadoop, etc.? If so, could you let us know which topics?
    I’m unable to download the presentation slides you use to teach advanced SQL. When I click on the SQL files or presentation option, it redirects me to the SQL Server Management Studio (SSMS) download page. Could you help me out with this?
    Looking forward to hearing from you! Stay blessed.

  • @sayowhatisuupmynaiba
    @sayowhatisuupmynaiba หลายเดือนก่อน +1

    Thank you so much for all of your hard work and helpful videos, I wish you all the best. I would love to see you make a video that provide us information about where to download high-quality SQL dataset with multiple tables to practice, I think it would be great.

  • @juancruz7836
    @juancruz7836 หลายเดือนก่อน +2

    I was really waiting for this video, Thanks a lot Baraa , looking forward to the next ones! :D

    • @DataWithBaraa
      @DataWithBaraa  หลายเดือนก่อน

      In the making glad you liked it 🙏

  • @rajshekar1362
    @rajshekar1362 หลายเดือนก่อน +1

    Thank you Baraa For Making this Video ❣❣

  • @MamadouCellouDiallo-u9v
    @MamadouCellouDiallo-u9v หลายเดือนก่อน +1

    Once again Thank you Bara

  • @utkarshgupta-q5c
    @utkarshgupta-q5c หลายเดือนก่อน +2

    Thank you so much brother. I was going through the triggers topic for SQL , is it kind of important of we can skip that topic.

  • @govardhanreddy690
    @govardhanreddy690 19 วันที่ผ่านมา +1

    Thank YOU So Much Sir

  • @ziadabdlbasset
    @ziadabdlbasset หลายเดือนก่อน +2

    thank you for this valuable content

  • @gauravbhandari8027
    @gauravbhandari8027 หลายเดือนก่อน +1

    Thanks for the great explanation!!!

  • @DivyYadav-hg2js
    @DivyYadav-hg2js 18 วันที่ผ่านมา +2

    bara im not sure wether i should learn tableau or should i learn power bi,according to u which should i start with?

  • @Perwezhassan
    @Perwezhassan หลายเดือนก่อน +3

    hi baraa.....thanks a million for such amazing video and teaching.
    can you please provide data set that you are using for cte

    • @DataWithBaraa
      @DataWithBaraa  หลายเดือนก่อน

      Thanks please follow link 🔗 in description

  • @michaelplaz1499
    @michaelplaz1499 หลายเดือนก่อน +2

    Sehr gut gemacht 👍

    • @DataWithBaraa
      @DataWithBaraa  หลายเดือนก่อน

      Oh Hi Michael, danke 🙏

  • @ErickGiovanniRuizHernandez
    @ErickGiovanniRuizHernandez 21 วันที่ผ่านมา +1

    I enjoy your way to teach very much. Do you have any video explaining Window Functions and Subqueries I can check?

    • @DataWithBaraa
      @DataWithBaraa  21 วันที่ผ่านมา +1

      Yes check the channel

  • @piyushmahajan4422
    @piyushmahajan4422 หลายเดือนก่อน

    thanku baraa for providing this wonderful course but i cant see the latest video that u uploaded recently

  • @RakshitDwivedi-pq8qc
    @RakshitDwivedi-pq8qc 29 วันที่ผ่านมา +1

    Hi Baraa,
    I have a question in the nested CTE's tutorial, you used ORDER BY function for RANK to Rank the customers. However you said earlier that ORDER BY clause cannot be used inside CTE.
    Does this rule not apply when we have an ORDER clause inside a Window function? Please clarify. Thank you for your amazing lecture on CTEs

    • @DataWithBaraa
      @DataWithBaraa  29 วันที่ผ่านมา

      reat question! The ORDER BY in a window function is used to rank or partition the data within the window, not to sort the final result set of the CTE. That's why it is allowed as part of the window function but doesn't affect the overall ordering of the final result.

  • @mohammedhegazy8906
    @mohammedhegazy8906 หลายเดือนก่อน +2

    What is the next tool baraa? I hope it is python

  • @anjuaj363
    @anjuaj363 5 วันที่ผ่านมา +1

    Hi sir, Can you please make a video about power BI

  • @aabhasagrawal410
    @aabhasagrawal410 หลายเดือนก่อน +2

    Sir python for data analysis please.

  • @affanskm3530
    @affanskm3530 24 วันที่ผ่านมา

    Hey , is this possible
    with cte as (
    code block)
    select * from cte
    with cte1 as (
    code block)
    select * FROM cte1

  • @ayushjha4503
    @ayushjha4503 หลายเดือนก่อน +1

    Please provide presentation and cheatsheet

  • @LeonanielBalijon
    @LeonanielBalijon 22 วันที่ผ่านมา +1

    where can I download the database for this? I want to practice.

    • @DataWithBaraa
      @DataWithBaraa  21 วันที่ผ่านมา

      Follow the link in description

  • @abusalem4406
    @abusalem4406 หลายเดือนก่อน +1

    Hello Baraa ,Thank YOU for this Effort
    Link To The presention Do not work

  • @amblessed_onwumere
    @amblessed_onwumere 28 วันที่ผ่านมา

    Tried Implementing the Recursive CTE at @57:41 in MySQL but it returns an error saying Table Series doesn't exist. Is this Recursive CTE only limited to Microsoft SQL Server?

  • @khalidazizi8346
    @khalidazizi8346 18 วันที่ผ่านมา +1

    why your coffee cup start steaming only when you put on the table? 😁

  • @adwaitjawadekar1185
    @adwaitjawadekar1185 หลายเดือนก่อน

    Hello baraa im trying to find the database to practice cte function i have gone through the link but still i didnt find it can you please repost it somewhere it will be great help
    actually i found the data in advance sql video but that is not the supportive format for sql server please upload that it will be great help.
    Thanks in Advance

  • @NGKannur
    @NGKannur หลายเดือนก่อน +2

    First ;)

  • @OPTIMUSPRIME-q8x
    @OPTIMUSPRIME-q8x หลายเดือนก่อน +1

    this time I will get my coffee first and then I will sit to study 😅😅

    • @DataWithBaraa
      @DataWithBaraa  หลายเดือนก่อน

      Hahaha yea without coffee it won’t work ✌️

  • @guiltycrown6024
    @guiltycrown6024 หลายเดือนก่อน +1

    bruh...ive been meaning to ask..is your coffee smoke real??
    it always looks the same..lol

    • @DataWithBaraa
      @DataWithBaraa  หลายเดือนก่อน

      What do you think 🤔 😉