Continuing the T-SQL journey with OVER and RANK

แชร์
ฝัง
  • เผยแพร่เมื่อ 17 พ.ย. 2024
  • Continuing our T-SQL journey, Patrick explores the use of the OVER and RANK functions in combination with common table expressions (CTE) in Azure SQL Database and Azure Synapse Analytics.
    RANK (Transact-SQL)
    learn.microsof...
    SELECT - OVER Clause (Transact-SQL)
    learn.microsof...
    WITH common_table_expression (Transact-SQL)
    learn.microsof...
    📢 Become a member: guyinacu.be/me...
    *******************
    Want to take your Power BI skills to the next level? We have training courses available to help you with your journey.
    🎓 Guy in a Cube courses: guyinacu.be/co...
    *******************
    LET'S CONNECT!
    *******************
    -- / guyinacube
    -- / awsaxton
    -- / patrickdba
    -- / guyinacube
    -- / guyinacube
    -- guyinacube.com
    **Gear**
    🛠 Check out my Tools page - guyinacube.com...
    #AzureSynapse #AzureSQL #GuyInACube

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

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

    This video deserves more likes than it's getting! I'm in an internship where I'm using T-SQL and PowerBI, and these videos are very VERY helpful!

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

    I love the T-SQL videos. Explained in an easy, concise way.

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

      Thanks Joe. We will keep them coming.

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

    Since I learned T-SQL before doing DAX, I use windowing functions all the time! SUPER handy!

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

    Love the T-SQL journey!

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

    Window functions are awesome! One tip though, you missed an opportunity to explain some new t-sql stuff ;) Since sql server 2022/azure sql, there is the new window clause. Which enables you to specify a window once and reuse it many times. When you use window functions extensively you will often see the over() part being copied many times within one statement. The window clause allows you to deduplicate your code. Would have been a nice addition for the folks already familiar with window functions.

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

    I would love to see a video on stored procedures. What they are, why you would use them, maybe in context with Power BI or Paginated Reports.

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

    wow , that's so nice Patrick

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

    Nicee! Very concise... I'm excited to see what's next!

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

    Getting into window functions can save a ton of time for you.

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

    Would use the Partition window daily. Just makes the day to day queries easy.

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

    Is there a playlist with T-Sql videos?

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

      We will work on one. Stay tuned!

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

    When you explain it, it all seems so simple.
    PS
    My SQL Server uses single quotes, not double quotes. That's weird

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

    Great video Patrik ;) Do you know if the OVER statement can generated in power query through the query folding? Or will it be in a near future ? Maybe a question for the master Alex Power?

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

    Love theese videos, but can you put and show us how you put what you write in a view or table and import it to powerbi. I know it sounds stupid but alot more people with catch on and it will bedome a smooth transition from a-b.

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

    B A N A N A S

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

    Just wondering if what you ve done here cant be done faster in power query in native query mode then copy paste bam, or copy paste to chat gpt to shorten/ check and bam done, aint this way a dinosour way :) ? I know not all can be done by nq but a lot