An Introduction to Microsoft SQL Server's Statistics

Sdílet
Vložit
  • čas přidán 9. 07. 2024
  • Explaining SQL Server statistics using playing cards. Demo script: gist.github.com/BrentOzar/b01...
  • Věda a technologie

Komentáře • 56

  • @davidp7571
    @davidp7571 Před 3 lety +8

    Wow amazing. Brent is one of the best teachers, and he's always a pleasure to watch. Clear, concise, and on point. Great stuff as always. Many thanks.

  • @goodone011
    @goodone011 Před 3 lety +14

    Love your story telling way of explaining everything...

  • @MarkBoomaars
    @MarkBoomaars Před 3 lety +5

    Well done Brent! Really great way of explaining a complicated subject.

  • @noosart6525
    @noosart6525 Před 3 lety +2

    I'm giving this a thumbs up. Love the way you present and how this super simple example shows how stats work. I can and will use it to inform my colleagues. A better understanding will lead to better development and maintenance. thx again!

  • @tomburgin
    @tomburgin Před 3 lety +5

    For clarity, at 3:55 the example is that there are now five of the cards, not four.

  • @hsepo
    @hsepo Před 9 měsíci

    It's amazing how Brent can visualize technical problems nicely.

  • @aynalemish
    @aynalemish Před 3 lety

    what a lovely way of explanation
    Brent you are all ways great!!

  • @dhimanbhattacharya
    @dhimanbhattacharya Před 3 lety +1

    Just when I was drifting off he says 'not like how you are drifting off in this webcast'. LOL! Love the presentation!

  • @faizq
    @faizq Před 3 lety

    Excellennt presentation of concepts by everyone, so much to learn and improve and an excellent community support to back it up.

  • @jeferrazcorrente
    @jeferrazcorrente Před 3 lety

    Really great way to explain!

  • @steveearle9678
    @steveearle9678 Před 3 lety

    Great analogy to explain this!

  • @deliaardelean5110
    @deliaardelean5110 Před 2 lety +1

    Amazing! Brent, you are a great teacher!🤣

  • @databasetales3562
    @databasetales3562 Před 3 lety

    Great explanation. I have had the experience of trying to explain why updating stats is important to developers.
    Ill send them here instead :)

  • @davidhicks2220
    @davidhicks2220 Před 2 lety

    Great teaching method! Easy to understand.

  • @vijaymunavalli335
    @vijaymunavalli335 Před 2 lety

    Loved explanation

  • @periclessevegnani
    @periclessevegnani Před 2 lety

    Just found out that SQL Server has Alex Jones voice !!!
    Jokes apart... wonderful class Brent.
    Best regards from Brazil.

  • @dougnulton
    @dougnulton Před rokem

    Your “SQL Server voice” cracks me up every time 😂

  • @vzntoup
    @vzntoup Před 3 lety

    Crazy stuff!!!!!!

  • @tebebegaredew3399
    @tebebegaredew3399 Před 3 lety

    As I understand it, sql server can keep statistics on columns that aren't mentioned in any index of a given table. If that is the case and I rebuild the indexes of the table, does that necessarily update statistics built for columns that aren't mentioned in any index?

  • @caglarcansarikaya1550
    @caglarcansarikaya1550 Před 2 lety

    it is really interesting informations for a software developer :) thanks for it, is there way to fix estimated rows on last example ?

  • @neryanatanov385
    @neryanatanov385 Před rokem +1

    Great video.
    So is there anything that can be done about the outliers?

    • @BrentOzarUnlimited
      @BrentOzarUnlimited  Před rokem

      Keep watching the rest of the videos in the series to learn. Cheers!

  • @pabeader1941
    @pabeader1941 Před 3 lety

    Has anybody let you know that there is an error in your script? When you add the red backed 2 you say "four" but there are actually 5. You might want to correct that in some way?

  • @ashishbhatia46
    @ashishbhatia46 Před 3 lety

    Thank you sir

  • @ggotrashus6643
    @ggotrashus6643 Před 3 lety +2

    Nice explanation as usual. Which SQL Server version did you use please? I don't get 1 for the estimated number of rows after the 2 columns indexes are created on SQL 2014.

    • @ggotrashus6643
      @ggotrashus6643 Před 3 lety

      Tried with SQL 2017 and it worked as expected.

  • @loudravetortoise
    @loudravetortoise Před 2 lety

    nice explanation with a lil razzle dazzle of adult humor lol

  • @sakurai2601
    @sakurai2601 Před 3 lety +1

    hey Brent , I love your card deck... where can we buy it ?

    • @TheBrentOzar
      @TheBrentOzar Před 3 lety

      Hahaha, thanks. Microsoft gave those away a few years back - I don't think they've ever been for sale. Might check eBay.

  • @temekinfu7146
    @temekinfu7146 Před 3 lety

    Morning Brent

  • @titusm9837
    @titusm9837 Před 8 měsíci

    Brent...where is the legend coming from: that if indexes have fragmentation above 3% it won't be used? I remember reading this somewhere 1000 years ago. I think this was the source for "reindex" constantly.
    Is it just a unfortunate coincidence?

  • @tapczan02
    @tapczan02 Před 2 lety +1

    Where is the link to your OF?

  • @TheSQLPro
    @TheSQLPro Před 3 lety +1

    If you work with data you should watch this.

  • @violetjellyfish2089
    @violetjellyfish2089 Před rokem

    Hello, mister Brent! Would you mind if i translate your videos about statistics to russian and place it on CZcams? Of course there will be so many links to your original video, as i can place😀 Your video about statistics is amazing and so many people who don't know english can watch it if it will be in russian

    • @BrentOzarUnlimited
      @BrentOzarUnlimited  Před rokem

      Thanks for asking, but no, my work is copyrighted. It's literally how I pay my rent. Thanks for understanding.

    • @violetjellyfish2089
      @violetjellyfish2089 Před rokem

      @@BrentOzarUnlimited ok, no problem! Have a nice day🌻

  • @atrulius4444
    @atrulius4444 Před 9 měsíci

    I keep on hearing interesting details about an only fans of yours, but cannot find a link. Would you mind giving me the link?

  • @DoctorAndy46
    @DoctorAndy46 Před 3 lety

    The Isle of Man TT, who would've thunk a DBA at the isle 😃

    • @BrentOzarUnlimited
      @BrentOzarUnlimited  Před 3 lety +1

      Yes, several times - I have a client over there - and I rode the course on the back of a trike!

    • @DoctorAndy46
      @DoctorAndy46 Před 3 lety

      Nice! Well, next time get on the front and make it two wheels.

  • @MeganCarroll-ms3yo
    @MeganCarroll-ms3yo Před 9 měsíci +1

    "Size doesn't matter its how you use it and you use it poorly." LOL

  • @olusam2732
    @olusam2732 Před 6 měsíci

    Hi Brent Ozar, I'm a passionate tech bro, an SEO Expert. I want to transition into SQL DBA.
    It would be my greatest joy if you could be my mentor.