How do SQL Indexes Work

Поділитися
Вставка
  • Опубліковано 22 гру 2024

КОМЕНТАРІ • 316

  • @robertgoodberry
    @robertgoodberry 7 місяців тому +108

    I just realized indexes are like the signs in a hotel that help you find your room without having to search the whole floor. Thank you for the explanation!

    • @paulo__vieira
      @paulo__vieira Місяць тому +1

      Good analogy.

    • @Michael-e3u3o
      @Michael-e3u3o 29 днів тому

      The motels have the non-cluster indexes for sure

    • @Dennis_Wahengbam
      @Dennis_Wahengbam 9 днів тому

      I have a better one but won't post it here...will post it on LinkedIn and watermark it so that people don't steal my idea and post it as their own...😅😅😅

  • @bezaar7762
    @bezaar7762 3 роки тому +262

    vekant you are priceless . i dont have even words for you , you make everything crystal clear. THE ONLY MAN IN THIS WORLD WHO MAKES SQL EASIER. the way you expalin and did in example on the actual managment studio. no words for you vekant. may god bless you with abundant health and peace. thumbs up 10000000. thanks alot

  • @Stelios.Posantzis
    @Stelios.Posantzis 3 роки тому +8

    Best short video on how indices work I've come across so far... This is great for a beginner.

  • @danimrath
    @danimrath 3 роки тому +17

    Seriously the best instructor I've had.

  • @starmole5000
    @starmole5000 3 роки тому +14

    This is such a great video. It takes a single concept at a time and demonstrates it in a focused and clear way.

  • @abhishekkumar-sl8ow
    @abhishekkumar-sl8ow 2 роки тому +2

    Hi Venkat,
    Thank you !
    Only because of you I got the job as a SQL developer. I learnt a lot from these videos. God bless you....

  • @Suraaps1415
    @Suraaps1415 3 роки тому +3

    My all time favourite, finally in DB development for almost 4 years and still following u and learning new things always.

  • @mr.prasadyadav
    @mr.prasadyadav 2 роки тому +13

    I'm working in the One of MNC on SQL SERVER with out any Problems on code Part.
    The complete credits goes to your videos,
    Always You are my SQL SERVER Hero Kudvenkat Sir,
    Please take care about your health if you are safe
    Alot of people will entry their life to Software Industry with your great Lectures.
    No words Simply You are awesome ❤️❤️❤️

  • @capsonfernandes4803
    @capsonfernandes4803 2 роки тому +2

    The way you use your talent to give back to society is incredible...Thank you so much for all the things that you do.

  • @tommyh3524
    @tommyh3524 3 роки тому +2

    You're a genius! I was literally wondering how does index work in SQL Server, then your video just popped up! Can't find other videos explain index better than yours, 100% thanks!

  • @teriyakov
    @teriyakov 2 роки тому +12

    Dude, I've been learning from you my entire career. Thank you so much! I hope one day I can show my appreciation for all your hard work 👊😎🙏🙏

  • @dodZeus
    @dodZeus 3 роки тому +1

    Best explanation I ever received in 10 years of IT jobs. Thank you

  • @subhraz
    @subhraz 2 роки тому

    Venkat, I have read numerous blogs and watched many videos on this topic but I somewhere knew I didn't fully understand the concept. After watching this video, finally I feel yes THIS IS IT. Your explanation is priceless. Thanks a ton !!

  • @aagebadho6907
    @aagebadho6907 3 роки тому +9

    What a dedication you have. You are a man of commitment and dedication. Hats off to you. I am following you since 4 years. Huge fan.

    • @ashajyothi06
      @ashajyothi06 3 роки тому +1

      Well said👌
      Absolutely true🥳

    • @ashajyothi06
      @ashajyothi06 3 роки тому +2

      Plz highlight this comment

    • @aagebadho6907
      @aagebadho6907 3 роки тому +1

      @@ashajyothi06 indeed, he is truly a gem. There are many other UA-camrs who are creating many asp.net tutorial. But the moment I watched him, I thought that's the one. So since that time I started following him. He is really generous and humble I feel. If you see his details you will find that he has learnt a lot and now he wants to share his knowledge for free. He jas nothing to do with earning money from UA-cam. He already earns enough.

    • @123Rajjo
      @123Rajjo 3 роки тому +3

      Absolutely..! I have been following his videos too and each of them is just perfect! Can't find a better tutor than Venkat. Many concepts that I was unsure and unclear about, just got crystal clear after watching his videos. God bless him.

    • @ashajyothi06
      @ashajyothi06 3 роки тому

      @@aagebadho6907 your exactly correct 👏👏

  • @shrusal92
    @shrusal92 3 роки тому +1

    One of the best videos I have come across for CI & NCI, thank you!

  • @rotan90
    @rotan90 11 місяців тому

    I have two technical interviews for one company this week. Company has tables with hundreds of milions of rows. With that knowledge I cannot be rejected :D thanks man!

  • @kapil4757
    @kapil4757 Рік тому

    I watched many other videos, those were either not useful or not covering the details to the fullest. Yo have exceeded my expectations. Thank you very much. Keep up the good work.

  • @jamrodhsingh2259
    @jamrodhsingh2259 3 роки тому +2

    I am really thankful to my friend who suggested me your channel. Why is it that I always come across people like you so late ??

  • @kongwengseng3735
    @kongwengseng3735 3 роки тому

    OMG. I finally found someone to share this kind of SQL knowledge. Subscribed. ThumbsUp

  • @basilio100
    @basilio100 3 роки тому

    What I like in your explanations not "how", but "why". Thanks

  • @alexpajp123
    @alexpajp123 2 роки тому +1

    You never disappoint. I've been a dev for 4 years now and you are still the first person I go to when I need help understanding something or a refresher.

    • @KiddyLovely93
      @KiddyLovely93 Рік тому

      haha!a very normally situation, bro! the knowledge is huge so we're just improve step by step for better.

  • @craziestkai
    @craziestkai 2 роки тому

    Can't be more grateful to have a youtuber like you who willing to share such good content!! I'm sure these videos save a lot of devs like me. Thank you, Sir!

  • @SirigineediRavi
    @SirigineediRavi Місяць тому

    Superb explanation. I have referred other videos but non of them given this much crystal clarity on Indexes. Thank you.

  • @TheSilent333
    @TheSilent333 3 роки тому +6

    Thank you so much for all of your hard work! Your videos have helped me immeasurably.

  • @marspark6351
    @marspark6351 Рік тому

    Which video would I need to watch for 10:35 to learn about why we need the nested loop and inner join?
    Seems like we should just be able to return a row once we did a clustered index lookup

  • @lasindunuwanga5292
    @lasindunuwanga5292 Рік тому

    the example you showed by adding 1M data and retrieving one record blowed my mind. I was always thinking like how to test query optimization theories, it needs a large amount of data. This is the way. Thank you very much

  • @entertolearn5000
    @entertolearn5000 3 роки тому

    I learned lots of sql concepts from u sir... Ur a greatest human being on this planet

  • @geragamo
    @geragamo 9 місяців тому

    I have seen videos from Kudvenkat long back, but this is the first time I comment something here, Hey guys, this videos are awsome, very straight to the point and awesome .... thanks keep going with this videos man, they are very enjoyable

  • @LordOfTheUniverseAndSpace
    @LordOfTheUniverseAndSpace 3 роки тому +12

    As usual, crystal n clear.

  • @ganeshdhareshwar6053
    @ganeshdhareshwar6053 3 роки тому +1

    You are awesome. You nailed it bro. You explained such deep concept easily within 12 min. Must appreciate your content.

  • @F2H16
    @F2H16 Рік тому +2

    What does the key-value pair contain for the non-clustered index? You said only @8:28 employee names are stored in the key values, which is not clear to me. The rest is quite informative.

  • @CppExpedition
    @CppExpedition 6 місяців тому

    EXCELLENT VIDEO, I FINALLY UNDERSTOOD INDEXES WITH JUST THIS ONE VIDEO!

  • @505lab
    @505lab 2 роки тому +1

    Thank you so much, the way you explain and did in example is very easy understand. I'm sure videos save a lot of devs, like me.

  • @mohitupadhayay1439
    @mohitupadhayay1439 2 роки тому

    Phenomenally executed video for INDEX in SQL!

  • @curiossoul
    @curiossoul Рік тому

    9:55 what does key value contain in non clustered index. What's the diff between k,v nodes and row locator nodes
    Also, why index seek shows scanned rows as 1 when db engine has to load whole page from disk containing multiple rows. Or does it exclude this from actual metric?

  • @SaurabhSarang
    @SaurabhSarang 3 роки тому +5

    Thank you I always get confused and create unnecessary indexes for performance boost without reading execution plan.

  • @ParamitaBiswass
    @ParamitaBiswass 10 місяців тому

    Fantastic learning video, it cleared so many of my doubts about indexing and the hands-on was very easy to follow. Thank you for the good work.

  • @yig8763
    @yig8763 Рік тому

    Thank you Kudvent! The explanation is crystal clear! I like how you speak slowly and it makes easier to follow the mass media content now is too fast to catch people's eyes and make the majority into a stressed mode.

  • @KurtMCox
    @KurtMCox 3 роки тому

    I've been referring back to your videos for years. Thanks

  • @brucezhou3358
    @brucezhou3358 3 роки тому

    Thanks man, you make the concept clear. Better than official docs.

  • @abs2645
    @abs2645 2 роки тому

    i love you 3000 for making the index concept seem so easy and clear !

  • @aakriti_100
    @aakriti_100 2 роки тому

    I was really struggling with this concept, came across your video. Thank you so much for this content, I really needed this.

  • @karmadorjee8076
    @karmadorjee8076 3 роки тому

    Wow, after so many year found you again.
    Thanks for great video again!

  • @RealTshepiso
    @RealTshepiso 3 роки тому

    This is the best explanation I have ever come across, thank you very much

  • @pramodmaurya6610
    @pramodmaurya6610 3 роки тому +2

    Yes ..the best SQL man..🙏❤

  • @shafi123
    @shafi123 3 роки тому

    Brilliant Explanation for SQL Indexes !
    Thanks Venkat

  • @ramanagattamaneni1184
    @ramanagattamaneni1184 3 роки тому

    Your sql videos are so nice with clear explanations. Thanks lot

  • @pinkeshpatel1940
    @pinkeshpatel1940 3 роки тому +1

    Thank god I came across this video 🙏 Best instructor

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  3 роки тому

      Thank you Pinkesh. Means a lot. You can find all our free SQL Server courses below. Hope you will find them useful.
      SQL Server Tutorial for Beginners (All the basic and advanced concepts)
      ua-cam.com/play/PL08903FB7ACA1C2FB.html
      SQL Server Interview Questions and Answers (Very important SQL concepts in this course)
      ua-cam.com/play/PL6n9fhu94yhXcztdLO7i6mdyaegC8CJwR.html
      SQL Server Performance Tuning and Query Optimization
      ua-cam.com/play/PL6n9fhu94yhXg5A0Fl3CQAo1PbOcRPjd0.html

  • @ashajyothi06
    @ashajyothi06 3 роки тому +10

    Venkat is just awesome....⭐
    Thanks for your efforts and time🤝👍

  • @se777en73120
    @se777en73120 3 роки тому

    5:57 why did it perform a clustered index scan on the PK instead of a table scan? What is the benefit of choosing to scan the PK rather than the table when PK doesn’t include the Name column?

    • @decostarkumar2562
      @decostarkumar2562 3 роки тому

      Clusters index scan help to look data fastly as it is sorted . PK not include the name but than after finding pk we find the respective record and then merge both . Hope it helps.

  • @CRBarchager
    @CRBarchager Рік тому

    Always learn something new when watching your videos!

  • @Raja-d6w
    @Raja-d6w 6 місяців тому

    I wish i could have seen your videos before.
    Highly impressed with your voice, appealing like AI

  • @srikanthjanapareddy
    @srikanthjanapareddy 7 місяців тому

    When a topic is complex and it is explained by venkat then it becomes a very simple topic
    What a legend he is👏👏👏

  • @mentorskool
    @mentorskool 2 роки тому

    When SQL troubles, Call venkat. Life long fan!

  • @jeevant3406
    @jeevant3406 3 роки тому

    Just discovered this channel....got blown🤯 thank you Venkat✌️

  • @rahulathreya3659
    @rahulathreya3659 Рік тому

    Venkat this is just amazing. Thanks a ton!

  • @pmshadow
    @pmshadow 2 роки тому

    Wow, you are incredibly smart and give the PERFECT explanation!
    Thank you very much!!

  • @tanvirahmadarjel6047
    @tanvirahmadarjel6047 3 роки тому +3

    Hello Venkat,
    why these videos are scattered instead of being under a playlist. You can group them under a play list name "SQL Server Performance tuning" for finding all videos at once.

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  3 роки тому +3

      Hi Tanvir - That's actually a great suggestion. Sure, I will create a separate playlist and add these to them. Thank you for the wonderful suggestion. Very helpful indeed.

  • @chandanadas7860
    @chandanadas7860 3 роки тому +3

    most asked question in interview. you are the best.

  • @nileshpatil5644
    @nileshpatil5644 2 роки тому

    smooth, clear and to the point video... awsome

  • @martaminale3847
    @martaminale3847 2 роки тому

    Thanks so much! I would say you are such an amazing teacher for many folks.

  • @prajwalsiwakoti9866
    @prajwalsiwakoti9866 Рік тому

    Big thanks to you sir. I have one question though, if a table doesn't have a PK(clustered index) and if we try to make non-clustered index then what will the index table have in key-value pair? Memory address as value?

  • @awilgedi5819
    @awilgedi5819 3 роки тому

    You like the BOXER of Mohamed Ali of SQL server of all time. Thank you, Champ!

  • @HarpreetKaur-qq8rx
    @HarpreetKaur-qq8rx Рік тому

    Hi,
    The second case where the record that belongs to a particular name is fetched then the physical and logical operation performed is
    called Clustered Index Scan even though name does not have clustered index. Why are the physical and logical operation not called table scan
    when we know that the SQL scans each row to fetch the row where the name is = "ABC 932000"

  • @rvscootin3457
    @rvscootin3457 11 місяців тому

    Taking me to the next level - Thanks!

  • @Confidential007.
    @Confidential007. 3 роки тому +1

    Your explanation is great, we can easily correlated to our thinking,
    Lot of thanks

  • @syed_hussaini
    @syed_hussaini 2 роки тому

    Your voice is so melodious that I just want to hear it again & again.

  • @anupojukalyan9
    @anupojukalyan9 3 роки тому

    Hello Venkat,
    Simply brilliant ! keep doing the amazing stuff !
    Thanks,

  • @youcan_sprules
    @youcan_sprules Рік тому

    Till now bestest best in sql index 🎉😊

  • @RunningManNewbie
    @RunningManNewbie 3 роки тому +5

    Thank you Sir! LESSS GOOOO~~!!

  • @naveenkumar-xr9gx
    @naveenkumar-xr9gx 3 роки тому

    Every time I worried a lot 😥 how to work with db concepts. Really like the way you explain. I follow you now on. Thank you so much for making this video🙏🙏🙏

  • @Shri-RAM-JaiBajrangBali
    @Shri-RAM-JaiBajrangBali Рік тому

    I AM HERE AS I WAS ASKED HOW INDEX WORK AT THE BEHIND OF THE SCENES.. SO WATCHING AND I HOPE THIS IS GONNA CLEAR MY UNDERSTANDING

  • @basiccode-fd6xz
    @basiccode-fd6xz Рік тому

    your videos are teaching me more than uni

  • @abhishekj2096
    @abhishekj2096 Рік тому +1

    How can u explain how indexing works on composite index containing more than 2 columns

  • @coding3438
    @coding3438 3 роки тому

    this video is gold omg brilliant

  • @sarfarazamd03
    @sarfarazamd03 3 роки тому +1

    Great to listen to your voice again ☺️

  • @kunststofffantastisch5690
    @kunststofffantastisch5690 3 роки тому

    You are the best of the best out there in tute land!!!

  • @micci9865
    @micci9865 Рік тому

    I found gold in this page. thank you brother.

  • @johnceena9799
    @johnceena9799 3 роки тому

    I was really happy once i saw your videos.

  • @CoffeeRoamer
    @CoffeeRoamer 3 роки тому

    Never seen a yt video with just 1 unlike shows all are loving the vids

  • @nehakesari7190
    @nehakesari7190 3 роки тому +2

    One word Excellent.....

  • @oksanagolets577
    @oksanagolets577 Рік тому +3

    Thank you for those lessons about indexes - the explanations are just great! Can you please consider recording videos about covered and filtered indexes in MS SQL Server as well? Would be very grateful!

  • @Darthdeedee91
    @Darthdeedee91 3 роки тому

    wow the quality of this video compared to others out there is awesome, subscribed. I will always come here for sql clarification

  • @rcasturi55
    @rcasturi55 10 місяців тому

    Thank you Venkat. You are a great knowledgeable teacher

  • @sck29
    @sck29 11 місяців тому +1

    Such an excellent explanation!!

  • @somesh512
    @somesh512 3 роки тому

    Hello @Vekant Sir,
    What if we don't have a clustered index on a table and only a non-clustered index on the name column.
    Consider there is no ID column due to poor design.
    In this scenario what will be the Cluster Key ( here which is the Emp ID column).
    Request you to elaborate this.

    • @decostarkumar2562
      @decostarkumar2562 3 роки тому

      We always have a pk (clustered index) . But in case we not have then surrogate pk is built which is coloumn storing time stamp .i.e time at which a row was built. Hope it helps 👍

  • @shivaprasadmpshivu1882
    @shivaprasadmpshivu1882 3 місяці тому

    Best video and clearly explained. Thank you!

  • @hruthviknarayan5269
    @hruthviknarayan5269 3 роки тому +1

    Hi venkat. Thanku for your videos.
    In a recent interview which i have attended, they have asked a question-->A table contains list of employees with their joining dates(ddmmyyyy) format.
    the interviewer asked to write a query to retrieve no of employees joined in each month for 2016 and 2018 years. can u plz help me with this Ques

    • @ManishKumar-qx1kh
      @ManishKumar-qx1kh 3 роки тому

      Select count(*) as EmployeeCount, CONCAT (YEAR(HIREDATE),'-',MONTH(HIREDATE)) as MonthOfYear from tablename group by CONCAT (YEAR(HIREDATE),'-',MONTH(HIREDATE))
      Check this

    • @RespectNaturalBeauty
      @RespectNaturalBeauty 3 роки тому

      @@ManishKumar-qx1kh put conditions as well as question

    • @ManishKumar-qx1kh
      @ManishKumar-qx1kh 3 роки тому

      @@RespectNaturalBeauty which conditions?? I have given a general example u can change it according to ur need.
      Let me know if there is something 🙂

  • @abderrahman9852
    @abderrahman9852 Рік тому

    Thank you, that was helpful to understand how indexes work!

  • @DesiHoonMain
    @DesiHoonMain 3 роки тому

    What a great and concise explaination of Indexes 👍

  • @christianeriksson7281
    @christianeriksson7281 8 місяців тому

    How can SQL Server read the exact address in the correct data page for the Id = 1120 when it's redirected to the data rows containing the Id intervall of 1101 - 1200? It's described as only one read of a row but how is that accomplished?

    • @Michael-e3u3o
      @Michael-e3u3o 29 днів тому

      The row “1120” is within 1001-1200

  • @vishalmakam7291
    @vishalmakam7291 10 місяців тому

    You explain simply, thank you🙏

  • @nitiniit07
    @nitiniit07 2 роки тому

    Wonderfully explained, hatz off to the effort in creating quality content with images which makes very easy for students with no or beginner level db understanding. I wish such content was there when I was in school/college.

  • @blackisblack22
    @blackisblack22 Рік тому

    2:00 the links between intermediate pages are incorrect, indexes act as a tree not as a net.

  • @nikitpanchal4807
    @nikitpanchal4807 2 роки тому

    May i know what is key value pair used in non clustered index ?
    Is the Key is Primary key and its value field value
    Example 932 : Alexa ?

  • @muhammadrehbarsheikh8498
    @muhammadrehbarsheikh8498 3 роки тому +3

    Thanks venkat. Please make a series of Xamarin and React Native for mobile apps.

  • @sumitahlawat2708
    @sumitahlawat2708 3 роки тому

    Great Video sir.. Following you from 2012.. watch your video.. repeated..

    • @Csharp-video-tutorialsBlogspot
      @Csharp-video-tutorialsBlogspot  3 роки тому

      That's an honour Sumit. Really glad you are finding our courses useful. Thank you for the feedback. Means a lot.

  • @sasaman5416
    @sasaman5416 3 роки тому +3

    Brilliant! Thank you!

  • @mangeshm4962
    @mangeshm4962 2 роки тому

    Thank you so much for sharing this knowledge....you are genius and all your videos are great!!!

  • @prabaljain3188
    @prabaljain3188 3 роки тому

    Sir learned everything about .Net from you. THANK YOU SO MUCHH