Microsoft SQL Server - T-SQL: Over() and Partition By

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

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

  • @flavio-neri
    @flavio-neri Год назад +1

    Nice and clean! Thanks for going straight to the point. Please, enable the 'Thanks' button. You deserve it.

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

    Seriously, thank you so much. Exactly what I need in a concise way: over() is like group by without using group by

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

    Straight to the point!!! Simple to understand yet surprisingly short! Thanks for This

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

    Thank you, found a very good explanation after watching 5 OVER() videos

  • @nataacevedo57
    @nataacevedo57 3 года назад +1

    After watch a lot of videos, with this video I understood, Thank u soooooooooo much. Greats from Colombia

  • @ClanKaiserGMS
    @ClanKaiserGMS 5 лет назад +24

    Short, Sweet and To the point! Great lesson!

  • @TheTrace8
    @TheTrace8 5 лет назад +6

    Without a doubt, the most straightforward video (5 min!!!) clearing something up in my last 6 months as a jr. developer. Seriously, this is a cut above, WAY about the usual.

  • @oscarrestrepo6364
    @oscarrestrepo6364 5 лет назад +3

    Thank you from Medellin, Colombia. I've searched a lot about this subject and you in 4 minutes nailed it. Thanks, you're such a great teacher!

  • @RUSEMANE
    @RUSEMANE 5 лет назад

    How much time I spent googling and couldn't find the right keyword! Your video clear, concise, and just what I needed. Thank you!!

  • @dendi1076
    @dendi1076 3 года назад

    awesome and clear! the phrase 'without narrowing down' totally nailed it concisely

  • @rubenagosto6141
    @rubenagosto6141 4 года назад

    Just needed a quick explanation and you did it beautifully. Thanks.

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

    Great lesson!

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

    Great video!

  • @abhinav6476
    @abhinav6476 3 года назад +1

    finally a goddamn good video lol

  • @rejawebs
    @rejawebs 4 года назад

    Thank you so much for explaining in such a simple way!

  • @bingochipspass08
    @bingochipspass08 5 лет назад

    Great video!..concept explained very well!

  • @sreenurasiraju7304
    @sreenurasiraju7304 5 лет назад

    Thank you Mama .. good explain with examples

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

    can we apply Over(partition by) using joins and group by ? and how ? could you please make a video on it.

  • @luismoncadapalma
    @luismoncadapalma 5 лет назад

    Thank you, I finally understood the OVER() clause

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

    wao! great...

  • @SanjayKumar-yh8fd
    @SanjayKumar-yh8fd 3 года назад +1

    thanks ma'am for the same

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

    Awesome I must say again! Please what if one just wants to select unique Customer IDs and then give a count of each alone ...i.e to have a table of just unique values of customer IDs with their respective count or sum, without including any other information?

  • @Alpacastan21m
    @Alpacastan21m 5 лет назад

    Explained it so well!! Thank you!

  • @eimaisklhros
    @eimaisklhros 4 года назад

    thank you very much.

  • @nierAutomata.
    @nierAutomata. Год назад

    How u used aggregate function without group by?

  • @Addam3000
    @Addam3000 3 года назад

    Thank you!

  • @esthercohen9011
    @esthercohen9011 4 года назад

    Thank you, to the point!

  • @jeremyheminger4133
    @jeremyheminger4133 5 лет назад

    This is a situation where it would be nice if SQL could return an object like:
    {
    TotalVal: 1265793.22,
    Customers:[
    1:{
    val:[
    330.00,
    472.20,
    814.50,
    845.80,
    878.00,
    933.50
    ],
    CustTotalVal:4273.00
    },
    2:{
    val:[
    88.00,
    320.00
    479.75,
    845.80,
    878.00,
    933.50
    ],
    CustTotalVal:1402.00
    },
    ...,
    ...,
    ...,
    ]
    }
    Instead of all those duplicate rows that code will need to be used to ignore after the first time its seen.
    // pseudo
    customer[id][CustTotalVal] ? (!set) row[CustTotalVal] : customer[id][CustTotalVal]
    I think MongoDB does that however, it's not generally necessary if your not using a GIANT DB
    ...But I digress.

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

    Like + subbed

  • @okan702
    @okan702 4 года назад

    Hi, let say I have to reach 330 and 933.50 for the custid 1. How can I make it? I'm searching like 2 hours and I could not get it... Thank you

  • @abhishes
    @abhishes 4 года назад

    What if I just wanted custom, totalval and custtotalval?

  • @pandagun00
    @pandagun00 5 лет назад

    thank you, good explain!

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

    Is this only for Sql Server?

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

      We teach SQL Server specifically, though the window function concept exists in other platforms. For example, MySQL has it: dev.mysql.com/doc/refman/8.0/en/window-functions-usage.html

  • @johnd.1211
    @johnd.1211 3 года назад +1

    sounds like Ellen D. is giving the presentation

    • @email195
      @email195 3 года назад

      That’s exactly what I was thinking!

  • @indikagunaratne8360
    @indikagunaratne8360 4 года назад

    Thanks

  • @jayjayf9699
    @jayjayf9699 6 лет назад

    Can u use it in where clause

  • @3435a-p4b
    @3435a-p4b 5 лет назад

    Gracias

  • @1BABartz1
    @1BABartz1 3 года назад

    She sounds just like Ellen Degeneres.

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

      I actually get that a lot.
      -Jen

  • @cormackeenan8175
    @cormackeenan8175 4 года назад

    I couldn't listen to it, not clear and concise, Yo and Hey

  • @ericpenarium
    @ericpenarium 3 года назад

    This is so well explained, thanks!