Clustered vs. Nonclustered Index Structures in SQL Server
Clustered and nonclustered indexes share many of the same internal structures, but they're fundamentally different in nature. Watch Microsoft Certified IT Professional Jon Seigel explain the similarities and differences of clustered and nonclustered indexes, using a real-world example to show how these structures work to improve the performance of SQL queries.
Blog post on primary key vs. the clustered index:
voluntarydba.com/post/2012/10/...
CREATE INDEX statement reference:
technet.microsoft.com/en-us/li...
ALTER INDEX statement reference:
technet.microsoft.com/en-us/li...
Index navigation internals by example:
sqlblog.com/blogs/paul_white/a...
Sample index data is from the AdventureWorksLT2008R2 sample database:
awlt2008dbscript.codeplex.com/...
Visit my channel for more database administration videos:
/ voluntarydba
Subscribe to get notified about my latest videos:
kzhead.info?...
Read additional content on my blog:
voluntarydba.com
Follow on Twitter:
/ voluntarydba
Like on Facebook:
/ voluntarydba
No nonsense talk or waste of time. Straight to the point with excellent presentation examples. Good Work. Thank you very much.
It is hard to believe that this video is from 8 years ago. Still the best video explaining the basics of both these indexes even in 2022.
Is it just me or did his eyebrows grow, during the course of this video and its edits?
Never before did Nicolas cage explain something so well, good job Nic. joking :D it was so helpful. thanks.
+Abd El-Rahman Ibn Omar lol
kkkkkkkkkkkkkk
And Nicolas Cage old has an odd sort of hottness. :)
HahhHahahah XD exactly
ha!!
I've watched over 10 video. This is by far the most clear structured introduction to indexes! Thank you!
Man, you fully rocked on demonstration the difference between Clustered Index and non-clustered Index ! This helps me on preparing for the interview questions !
This is one of the best videos on this topic out there. Keeps it simple, but still clearly explains the structures and how it works. Very nice work, sir!
Elegant explanations like this are truly timeless, shifted through a bunch of videos attempting to word this same information in, like, double the time, and yet STILL failed to deliver as well as you did, sir, truly thank you.
I have been looking for different sources just to objectively understand the difference between clustered and non-clustered indexes and to know how they really work. This very short and precise video have put an end to all of my Qs. Thank you.
This video helped me ALOT, I've been watching many videos and this really clearly cleaned things up for me. The moving graphics were a big part of that too. thankyou!
I always come back to this video when I need a refresher and it never fails to help me. Thanks again!
Great explanation! This is the type of explanation that every developer can understand, no matter their programming level
Wow, great explanation, love the usage of visualization of the data stored in structures. I've had an idea about how indexes work, but after watching this I'd be able to explain it to my grandmother (:
Thank you for painting and diving deep in details of indexes!
This has been a great straightforward video that really helped explain the difference. Thank you keep up the good work!
Thank you so much for posting this! I was having a hard time understanding the differences between the two until i watched the video.
Really amazing, I was not aware that we can define type of index while applying primary key or unique constraints. thanks for amazing explanation :)
wow....best explanation. I'm studying for the mcsa exam. I've been struggling with this topic. thanks!!
Great video, thank you for creating this and explaining the concepts in a concise and visual manner.
Thanks for the video, the phonebook example was good and easy to understand. From my experience, things sometimes get confusing because of different default behavior of different RDBMS - some automatically create clustered indexes for primary keys, some automatically create indexes on foreign keys, and some don't do any of this. So, sometimes you might get unpleasant surprises and performance issues if you have to deal with a RDBMS which you don't have experience with.
really awesome explanation of a concept that I come across every day that has perplexed me to date... thank you sir !
Incredibly beautiful explanation of clustered and non-clustered indexes. There is a lot of material in those first 6 minutes, and I admit I had to pause several times to absorb it and move, but hey who is complaining when you get there eventually.
I know this has been up for 6 years but THANK YOU!!!!
Wow, I could not image a man can explain it in such a simple way! Thank you!
Never get this clear until this video. Nice!
Perfectly concise and to the point. Well articulated and the visualizations help dramatically. Thank you very much for your contribution to the DATA world :)
Best indexing explanation I've seen on internet.
Very good explanation ;) My tutors have tried to explain clustering and indexing for me multiple times, without my understanding. But your examples and explanation of the differences really helped
Perfect explanation I've ever seen before! Please do not stop!
Very helpful especially the way you explain and display the concept.
Excellent explanation. I don't think this can be described any better. Great visuals. Thank you so much
Most concise and easy to understand video out there. Thx man!
the best tutorial i have ever seen for MS SQL indexes, good job my friend
Thank you very much! I'm glad it helped you.
great visual representation and model choice. subscribed!
its simple to understand with graphical representation. Keep up with them. Great work.
Thank you!! I particularly liked your examples and your methodical delivery of the information. I found the examples to be very helpful as well!
This is all I was looking for. Best explanation about behind the scenes of indexing.
what a brilliant explanation! subscribed! Looking further for your explanation about physical and logical operators in SQL Server and when is the best situation to use it (Nested loops, Hash Match, Merge Join, etc) Greetings from Indonesia!
Awesome presentation, looking forward to watching more of your presentation.
it can't be better explained, excelent work
Thank you so much, I never forget concept because of your visual representation. It made me to understand , very clearly
This is very useful. I now understand non-clustered indexes. Thank you
Very well illustrated and explained thoroughly. Well done.
This man knows what he talks about - great. Waiting other videos.
Sir 5/5 for this video , the visualization was a gr8 help in understanding . I had some knowledge that B-tree was the index data structure but could not grasp it , but after your video it helped me a lot. Plz do post more such videos.
Great stuff about indexes.. Thanks for uploading.
Thanks for explaining, i appreciate your effort.
One of the best tutorials I've ever seen. Thank you so much. Brief and infomative. Animations are very helpful also.
You're welcome!
Very useful, thanks for making the video and explaining the concepts so well!
you have saved my life !!!!! genius explanation. I have been struggling to understand this for months after months
Bravo! That is most succinct explanation of clustered indexes I have ever read or seen. I've got it now :-)
Never it was explained so well by others. Thank you !!!
Nicely put.. Specially graphical visual are the one which makes one understand much better .. .Thank you so much ...
Excellent video. Much easier with visuals than reading articles. Keep up the good work.
Excellent video. Finally I could find a video which is so crisp and clear. Thanks a ton!!
Wow, Excellent content and animation. Thank you!!
Great video, very well put together and simplifies the topic well.
I am just starting to learn SQL. My dad is going to give me lessons, but this certainly helped me understand some of the terminology. I figured since I am already a Network Engineer who is two months away from his bachelor's degree, I want to make myself more valuable.
Very consistent video. I hope you will add more on this topic. thank you very much
I had a hard time understanding the difference until I watched your video. Thanks for the simple explanation!
Thank you! I interact with a SQL database often, but indexes are not something I deal with enough. This was great information and exactly what I needed (:
Thank you very much, I have been reading at many places but no one explained with images. Greate video. Even MSDN documentation doesn't have this much information.
That was so helpful. Thank you for the clear explanation.
Great work, learned quite a lot about such a important topics in database the slides and visual explanation was piece of master piece
You are so chill bro, thanks for the video.
This video might save my advanced databases test grade tomorrow. I hate when the prof. doesn't explain stuff clearly enough for me. Thanks for the video - liked and subbed! :)
I liked the visualizations best. The phrase "a picture is worth a thousand words" definitely applies to this video. Thanks for the concise and well delivered video. And, please, ignore the "Nicolas Cage" references below.
The best explanation of the indexes in SQL thank you so much
Nice, clear delivery, good explanation. And he said "zed"! He speaks proper English..!
Precise and very well explained.
Thank you ...very help full and wonderful demo..we are expecting to see more demos off SQL server from you..
Nice Video, The way he explaining is extraordinary
Best explanation with visuals. Kudos!!
I went through many other tutorials, this one really stands out
Buena explicacion, estoy dando mis primeros pasos en SQL server, y tu explicación me aclaro muchas dudas
Awesome tutorial, Visualised and explained well, Fantastic, Many thanks
Great Explanation and analogy about clustered-indexes 5 star!
This is awesome, I referred lost video but this one really hits me. This is next level explanantion.
The models you used were great! Thanks!
Very useful video! Your visual graphics made it very simple to understand. Thanks :)
Thanks for posting! I learned a lot!
the best helpful video i found about cluster index. thanks much.
crystal clear....thank you so much for the video
Great video on cluster and non-cluster index
A lot wannabe blogs explained it with much much worse example, even a lot that even do not define from the scanning process through accumulate the results. Nice vid!
this is so good an explanation, I love you!!! good mate and good job.
Very good explanation of the subject.. Thank you
Brilliant explanation. Well done, thank you.
Thank you so much for the super clear explaination!
Wow! Best explaining ever!
Thank you so much ! You are amazing. Everything is explained so organized
very good! much better then others I've watched
Best explanation i have seen for this topic. Thumbs up man.
Thanks friend, that was a clear and concise explanation with excellent graphics.
Great Stuff. Nice Explanation. Thanks
I understood more from this video than from a whole semester of lectures. Thanks!
You're very welcome! I'm glad it helped you understand these concepts.
Thank you for this explanation.
Excellent demonstration.
Thanks for you reply. Waiting for you video on Execution plan.
Really helpful video with simple examples
Thank you so much for such a great explanation!