SQL Window Function | How to write SQL Query using Frame Clause, CUME_DIST | SQL Queries Tutorial

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

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

  • @timmytesla9655
    @timmytesla9655 2 ปีที่แล้ว +192

    I never thought I would understand window functions so fast and easily like this. Thank you a million times.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว +10

      Glad this helped ☺️

    • @mukeshbarnwal2705
      @mukeshbarnwal2705 ปีที่แล้ว +2

      turu

    • @cecille2341
      @cecille2341 ปีที่แล้ว

      same

    • @thedataholics
      @thedataholics ปีที่แล้ว +1

      @@techTFQ
      does the way of window clause not work in SQL SERVER as I am getting error while doing so??
      Below is the query I am using
      @techtfq
      select distinct product_category,
      FIRST_VALUE(product_name) over w as most_expensive_product_in_each_category,
      FIRST_VALUE(price) over w as price_of_most_expensive_product,
      LAST_VALUE(product_name) over w as least_expensive_product_in_each_category,
      LAST_VALUE(price) over w as price_of_least_expensive_product
      from products
      window w as (partition by product_category order by price desc range between unbounded preceding and unbounded following)

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

      @@techTFQ p0llo

  • @aperxmim
    @aperxmim 3 ปีที่แล้ว +53

    This is about easy as it gets to understand, just need to practice so these techniques could stay inside my brain. Good Job, better than most college professor teachings.

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +4

      Thank you so much 🙏🏼
      Glad to know you found this helpful 🙂

  • @amaalanoos838
    @amaalanoos838 2 ปีที่แล้ว +21

    This is how a tutorial should be. Concise and clear explanation. Greate Job!

  • @saranrajv3
    @saranrajv3 2 ปีที่แล้ว +25

    I have searched Udemy and many youtube channels to understand the Window functions and finally this video shed the light for an excellent clarity , Once again kudos to Taufiq for an excellent content and clarification :)

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว +1

      Glad it helped!

  • @uraniumu242
    @uraniumu242 ปีที่แล้ว +1

    I hav spent a lot of money on books a courses but you are the best teacher. I have learned things that were skimmed over elsewhere. Thank you!

  • @avikkarmakar2278
    @avikkarmakar2278 ปีที่แล้ว

    The goto channel to learn SQL. As a non-tech person, I really appreciate the ease of learning and understanding the language

  • @tejaswi1995
    @tejaswi1995 2 ปีที่แล้ว +2

    In the context of "unbounded preceding and unbounded following", this was the only time I understood it. Thanks a lot

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Happy to know that :)

  • @sanjoysaha1697
    @sanjoysaha1697 2 ปีที่แล้ว +22

    I have explored so many courses on udemy and on other online platforms but yours is unparallel. Excellent explanation, easy to understand making it stand out from the crowd. You rock man. Thanks for sharing the videos.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว +1

      Thank you Sanjoy.
      Appreciate the feedback

  • @meghanaiitb
    @meghanaiitb 2 ปีที่แล้ว +3

    Hello Thaufiq, I’m on my SQL learning journey and came across your channel, thank the TH-cam algo lords. Previously, I used to refer to the documentation pages to learn SQL and would easily get lost in understanding nuances. Your succinct explanation on LAST_VALUE() default frame just saved me loads of time. Huge thanks. Subscribed.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว +1

      Hi Meghana ,
      It means a lot to receive such amazing feedback.. thank you 🙏🏼
      I am so glad my content helped you ..

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

    Best video ever found on TH-cam!! I was scared of SQL queries for all interviews,after going through your videos I have got confidence and creaked interviews as well...Many many thanks to you...the way you explain is superb...Kudos to you !!

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

      What questions were asked ?

  • @samreenfathima6793
    @samreenfathima6793 ปีที่แล้ว

    I completed a course on advanced sql windows functions on linkdin and in 15 minutes of your video i understood more than i did in that entire course!! kudos to you. I cannot thank you enough !! really really appreciate !! need more tutors like you!!

    • @nomatusi7514
      @nomatusi7514 ปีที่แล้ว

      nth_value is not working on my MS SQL. I copy the codes but still cannot work.

  • @ATVhasist-w5w
    @ATVhasist-w5w ปีที่แล้ว

    TechTFQ = Deep Understanding + Great knowledge + Impressive teaching style.

  • @pzuazu8636
    @pzuazu8636 2 ปีที่แล้ว

    You sir are a God send. My number 1 port of call when i need sql explained in plain English. On behalf of all your viewers here's a massive THANK YOU.

  • @satyaece2007
    @satyaece2007 2 ปีที่แล้ว +40

    Exceptionally articulated starting with every query and data set explanation and I can't believe it's so easy after hearing to your explanation and it's impressive. It's not easy to watch an hour of new concept continuously but your videos are exception. It's really interesting though I'm pretty new to these concepts. Thanks a lot for making these videos.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว +2

      Very happy to read this feedback Satya ..
      I am very glad you liked it ..
      🙏🏼🙏🏼☺️

  • @gauravhawadiya6990
    @gauravhawadiya6990 3 ปีที่แล้ว +1

    this is the first video on youtube i have seen so far that has 1000 likes and 0 dislike as on december 12th , 2021.... indeed a great video and great teacher......

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Thank you Gaurav 🙏🏼
      I had not notice it .. it’s so nice you did and mentioned it here .. I am glad you liked the content ☺️
      Thanks again

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

    @techTFQ - I have paid a hefty amount to an ed-tech company to learn SQL, but believe me when I say, this is far far better explanation then those nincompoops. Kudos to you!

  • @techTFQ
    @techTFQ  3 ปีที่แล้ว

    Download all the SQL Queries, Table structure and Table data used in this video from my website. Link below:
    techtfq.com/video/sql-window-function-sql-queries-tutorial-part-2
    Click on the button which says "Download SQL Script" to download the .sql file (.sql file can be opened in any text editor)

  • @anduamlaktadesse9284
    @anduamlaktadesse9284 2 ปีที่แล้ว

    After now on, I can solve any complex problems using window functions .
    Big respect for you!

  • @artisartisworld8629
    @artisartisworld8629 ปีที่แล้ว +5

    one of the best and easy explanations, even better than what we pay for most of the Udemy courses.

  • @nabilakhtar1048
    @nabilakhtar1048 ปีที่แล้ว

    I just started learning SQL and this tutorial saved me. outstanding. Keep going

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

    I love how you explained the frame clause. It's so easy to understand in your way. Thank you for that

  • @sairamuddanda5816
    @sairamuddanda5816 2 ปีที่แล้ว +2

    Mind blowing!! Never come across this much clearer explanation in entire world which you have done it. Thanks for this

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว +1

      Glad you liked it bro

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

    Your way of exlanation is very simple. You are making SQL very simple and easy. Thank you for your efforts. You are just great.

  • @sonicasinha
    @sonicasinha ปีที่แล้ว

    Now finally I am able to understand completely how and where to use window functions in such a easy way. Thanks a lot for an amazing tutorial !!

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

    Jazakallah khair.. i am learning sql by watching your videos thanks you are a best teacher.

  • @wrenggorwagnac5948
    @wrenggorwagnac5948 2 ปีที่แล้ว

    My good sir, I've been binge watching your videos. Got my Google Analytics diploma and I need as much practical knowledge and practice as I can get my hands on. THANK VERY MUCH for these videos.

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

    "I am so thankful to you because your videos have made me more interested in learning SQL. I love the way you explain the topics using simple words."

  • @MachellBeach
    @MachellBeach ปีที่แล้ว +1

    I watched both of your videos on window functions. You have a way of making something that seems complicated, 😂easy to learn. You’re a very good teacher. Thanks for your help.

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

      Great to hear

  • @lize.6122
    @lize.6122 10 หลายเดือนก่อน

    Many thanks for your invaluable contribution to the success of my SQL journey. You are such a lifesaver.

  • @achmadthoriq4412
    @achmadthoriq4412 3 ปีที่แล้ว +2

    i like how the way you explain window function so easily for beginner. Thanks

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you Thoriq 🙏🏼
      Very happy to hear this

  • @story_teller_Is
    @story_teller_Is ปีที่แล้ว

    default frame k concept p youtube m v bht kam videos hn., but iss vdo m bht mast explanation k sath default frame v clear hogya.

  • @mateuszsmendowski2677
    @mateuszsmendowski2677 2 ปีที่แล้ว +1

    Literally the best channel about SQL on TH-cam :)

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว +1

      I am glad you think so ☺️
      Thank you 🙏🏼

  • @saibalpatra01
    @saibalpatra01 ปีที่แล้ว

    Both the tutorials of window function are gem of video. Really love the way you teach.
    Thank you so much

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

    For the PERCENT RANK window function example, I believe this would answer the question - How expensive the phone is with regards to the most expensive product rather than how expensive the phone is compared to all the phones(As every phone will have a different price). Liked the content and examples. Thank you.

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

      pls can i get the codes for this particular video....thank you

  • @vikramarora6508
    @vikramarora6508 ปีที่แล้ว

    I used to think , SQL is so dam tough but not anymore. You are just too good

  • @aebirim9210
    @aebirim9210 2 ปีที่แล้ว +1

    This is an excellent video. This explains to me why my SQL queries have been delivering funny results. That bit about unbounded preceding and unbounded following is priceless!

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Glad it was helpful!

  • @md.jannatultasnim2661
    @md.jannatultasnim2661 2 ปีที่แล้ว

    you are a great mentor . At first these things were very confusing for me but now i am confident enough to use them. Thank you

  • @niteshkumar2874
    @niteshkumar2874 ปีที่แล้ว

    It's is very tough for understand window function but when I landed here ..finally fear of window function gone ..thanku for videos.

  • @anjanaray1594
    @anjanaray1594 3 ปีที่แล้ว +4

    After going through numerous videos on sql and trying to find the best one to understand the concept I found this, truly a gem. quality content easy to understand simplified language is used. watching your videos continuously more than 2 hours. Thanks a lot. please do create projects on sql too after all the concepts.

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thanks a lot Anjana 🙏🏼🙏🏼
      Amazing to receive such feedback .. I am so so glad you liked the video and have benefited from it..
      Surely will be making some videos on SQL projects in the near future..

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

    This is the best video on Window function I have ever came across. Kudos to you!!

  • @rizf800
    @rizf800 ปีที่แล้ว

    most comprehensive and easy explanation of the most difficult query thank you so much❤❤❤

  • @niveditav691
    @niveditav691 ปีที่แล้ว

    Undoubtedly you have the best video explaining window functions !!

  • @salaiarunmanijb174
    @salaiarunmanijb174 ปีที่แล้ว

    THE BEST video for the window function

  • @ShubhashreeMunot
    @ShubhashreeMunot ปีที่แล้ว

    One of my favorite channel on you tube!!
    Quality content!!!!! Really Thankful to you for sharing this detailed knowledge on window function!

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

    this video is better than any other one in the same topic. Million thanks!

  • @LalithammaBestavaripeta
    @LalithammaBestavaripeta ปีที่แล้ว

    All the window functions are very easy to understand. Thanks for explaining very clearly.

  • @gulaggang6339
    @gulaggang6339 3 ปีที่แล้ว +6

    Great video. Looking forward to more advanced sql content. Thanks for the quality content.

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Thank you so much 🙏🏼
      Truly appreciate your feedback. Yeah will cover other advanced SQL concepts ☺️

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

    3 yers later and still relevant great job

  • @alkaaswar1780
    @alkaaswar1780 2 ปีที่แล้ว

    You are such a great person who are providing this all the helpful knowledge freely Thank you so much

  • @abinmathew2741
    @abinmathew2741 ปีที่แล้ว

    You are such an exceptional Teacher....very precise to the concepts and explanation is crisp and clear...Thank you..SQL learning is more easy when I hear from you.

  • @tanmaysinghi1868
    @tanmaysinghi1868 2 ปีที่แล้ว +3

    your videos have been extremely helpful so far, thank you so much for all this, I wasn't just able to get a quick revision of SQL but also learn few advance concepts.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว +1

      Thank you Tanmay 🙏🏼
      Glad this helped

  • @swetagupta5539
    @swetagupta5539 2 ปีที่แล้ว +1

    Explanation was crystal clear. Thank you so much for sharing this video.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thank you :)

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

    It was a detailed explanation, including the formulas, which made the concept much clearer. Many thanks! 🙂

  • @TeamEnneser
    @TeamEnneser ปีที่แล้ว

    Easy explanations. No self advertisement. Absolutely Professional. Good Work Mate

  • @sandeepmandavilli4512
    @sandeepmandavilli4512 2 ปีที่แล้ว +1

    you are saving my interviews , thank you for these amazing videos

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Your welcome buddy
      Glad this is helping

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

    Your way of explanations through queries makes every concept interesting and inspires to learn more.

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

    Unbounded preceding was a tricky one.. Loved the way you explained..

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

    explanation of the frame was just amazing!
    thank you so much !!

  • @ritikas383
    @ritikas383 2 ปีที่แล้ว +1

    I am so grateful that I stumbled upon this channel. Thank you for making it all so easy !

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      You are so welcome!
      Glad it helped

  • @kebincui
    @kebincui 2 ปีที่แล้ว +1

    Explaination Crystal clear. Thanks for sharing

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Your welcome 🙏🏼
      Glad this helped

  • @aryamohit6496
    @aryamohit6496 2 ปีที่แล้ว

    you explained things in very simplified way, Thanks
    My search for advanced topics for sql stopped here.

  • @VinayKumar-ij4eu
    @VinayKumar-ij4eu 2 ปีที่แล้ว +1

    Able to understand each window formula within 2 videos using OVER clause...Thanks brother for such an informative video!!! Keep it up!!

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Your welcome vinay 🙏🏼
      Happy to know this helped

  • @davidgitau8825
    @davidgitau8825 2 ปีที่แล้ว +1

    One of the best video of windowing functions done! Keep it up.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thanks a lot!

  • @mayurjoshi1452
    @mayurjoshi1452 2 ปีที่แล้ว

    your sql master guide for beginners. toufiq sir.

  • @anujshah7350
    @anujshah7350 2 ปีที่แล้ว

    your voice and way of teaching don't let anyone go away from the long video length as well. Keep up (y)

  • @VishalAndhale-j1u
    @VishalAndhale-j1u ปีที่แล้ว

    The way you explain the things makes it very easy to understand the functions. Thanks alot.

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

      You're welcome

  • @karennguyen7083
    @karennguyen7083 2 ปีที่แล้ว +1

    Clear explanation. Look forward to watching your following videos. Thanks.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Awesome, thank you!

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

    @techTFQ- Awesome, great job, I have been working in IT as a developer from 5 years but still I do watch your videos on Advance sql topics and those are amazing.

  • @manic-uq9si
    @manic-uq9si ปีที่แล้ว +1

    Excellent teaching sir TQ very much

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

    You are such an amazing teacher. Thank you so much.

  • @niralikatre2252
    @niralikatre2252 2 ปีที่แล้ว

    EXECELLENT EXPLAINATION.....VERY EASY TO UNDERSTAND..THANK YOU SO MUCH...GREAT EFFORTS....

  • @bhargavpaluri6858
    @bhargavpaluri6858 2 ปีที่แล้ว +1

    Explanation is too good.making every concept look easy.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Glad you liked it

  • @stevenpalm9484
    @stevenpalm9484 2 ปีที่แล้ว +1

    You are a great instructor. Thanks for sharing.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thank you once again Steven 🙏🏼

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

    Wow! I understand your content on SQL very easily. Thank you very much. Keep making videos!

  • @jeffp9091
    @jeffp9091 ปีที่แล้ว

    Really great video. I think it helped that I wasn't totally new to window functions, but this tied everything together. Very thorough. Thank you thank you!!

  • @subha1818
    @subha1818 2 ปีที่แล้ว

    Fantastic stuff. Better than paid courses. Thanks man.

  • @Olashileayomi
    @Olashileayomi 2 ปีที่แล้ว

    I'm so glad I stumbled upon your page. My queries skills have improved a lot watching your videos. Keep doing the good work Taofiq.

  • @sidhantbourney4838
    @sidhantbourney4838 3 ปีที่แล้ว +1

    Best video on window functions that I've ever seen.
    Keep up the good work!!

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you Sidhant 🙏🏼
      Appreciate the feedback ☺️

  • @rajarani657
    @rajarani657 ปีที่แล้ว

    I like your way of teaching, it is very easy to understand. Thank you very much.

  • @sudippandit9855
    @sudippandit9855 3 ปีที่แล้ว +11

    Thank you for your contribution! I really love to see those contributions so that it will make easy to understand the real time projects. Please keep going your good work and hope to see the other more videos like this in the upcoming days😍

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Thank you Sudip 🙏🏼
      I am so glad to know you liked my videos ..
      I’ll try my best to post more such useful videos ☺️

  • @johnnybegood948
    @johnnybegood948 2 ปีที่แล้ว

    I'm new in sql and your videos are really helpful!
    Thanks a lot

  • @WithASideOfFries
    @WithASideOfFries 2 ปีที่แล้ว

    I can't believe how helpful this is. Such a brilliant job. Thank you immensely.

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

    Such a good explanation of Window Functions. Thank you!

  • @SantanuRoy-oq2nv
    @SantanuRoy-oq2nv ปีที่แล้ว

    Outstanding Sir. Thank you for your both Windows functions videos..

  • @mullaipugazhendi3236
    @mullaipugazhendi3236 ปีที่แล้ว

    WORLD BEST TUTOR.

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

    Your way of explaining really easy to understand
    Thank you very much !!

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

    Respect from the bottom of my heart, Thank you so much for this video. Just wow🤩

  • @chiluverimadhankumar2005
    @chiluverimadhankumar2005 ปีที่แล้ว

    best explanation ever seen about window functions. keep rocking sir...

  • @priyasr5522
    @priyasr5522 3 ปีที่แล้ว +1

    Very much understandable. Examples and explanation was too good. Thank you very much for such an wonderful explanation

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Your welcome Priya ..
      Glad this helped

  • @rishavraj3867
    @rishavraj3867 3 ปีที่แล้ว +1

    I watched several videos, your is the best

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you Rishav 🙏🏼
      Glad you liked it ..

  • @mohamedazar3729
    @mohamedazar3729 ปีที่แล้ว

    Simply mind blowing explanation! Thanks for being a great mentor. Much love and health to you!

  • @swatisinha3230
    @swatisinha3230 3 ปีที่แล้ว +6

    Thank you for such a fine effort . Explained everything in detail :)

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thanks a lot Swati 🙏🏼
      Happy to know this helped ..

  • @vishalnasre1251
    @vishalnasre1251 2 ปีที่แล้ว +1

    wonderful video with a very detailed explanation. thank you

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Glad you liked it 🙏🏼☺️

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

    Thanks toufiq for thus great tutorial

  • @SaifRehman-f5s
    @SaifRehman-f5s ปีที่แล้ว

    Excellent teaching... understood in one go ..

  • @gowthamsagarkurapati9388
    @gowthamsagarkurapati9388 2 ปีที่แล้ว +1

    The concepts are very clear, Thank you for explaining!

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Glad to hear that ☺️

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

    very useful video. Thank you soooo very much sir

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

    The explanation is simple and upto the point. I am glad I found this channel. Btw that slap sound is quite funny during intro to new functions. 😂

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

    best SQL channel

  • @teslaocean9949
    @teslaocean9949 ปีที่แล้ว

    best video on window functions!! thank uu brother ...