Differences between Clustered vs Nonclustered Indexes in SQL Server

preview_player
Показать описание
Should you use a clustered or a nonclustered index?

When starting out with SQL, you might intuitively know that you should add an index to a table, but you might not be sure what kind of index to add.

In this video we go over the basics of clustered and nonclustered indexes to help you get through index choice paralysis.

Blog post with example queries:

Follow me on Twitter:

Рекомендации по теме
Комментарии
Автор

Finally someone that explains by using realistic and relate-able scenarios...I actually get it now! Thanks

rondabrown
Автор

I went through all videos on YouTube regarding this topic and finally that's the one that makes it clear to me. Many thanks!

emiliamatrejek
Автор

The mushroom book example is very helpful. Thank you!

shaoyizhang
Автор

The better explanation ever found in the hole that are databases

andyqueiroz
Автор

Dude, this video was 200x more effective than half of the Microsoft press 70-762 textbook. Thank you much!!

rabes
Автор

finally, a guy on point.. this was perfect!!

MrShivanand
Автор

Man, you're my hero, I'm not a database guy but this was so perfectly understandable.

carloscepeda
Автор

Best explanation on index I have ever watched!

galaxywalker
Автор

At 7:40, I finally understood the nonclustered index. Thanks.

gotchihaeyo
Автор

Best video i came across so far, for this topic. Great analogies

elinanikolopoulou
Автор

A very good video, only part is the example of the clustered index, in my opinion, should be a phone book or dictionary instead of textbook content as the clustered is physically sort/ordered the data, this example very much applied on the no-clustered index. Thanks.

fadimichael
Автор

Do you have a video that explains the differences between a table scan, index scan and an index seek and when SSMS will use each of these? If not, would you consider doing a video about this?

BoxerDogs
Автор

At 6:35 you give an analogy about a nonclustered index and a clustered index. If I understand what you are saying, are the following statements true:

- A nonclustered index is like an index at the back of a book, with page numbers (each page number is like a row identifier)
- A clustered Index is like an index at the back of a book, but no pages numbers (which would seem odd for a book to have)

BoxerDogs
Автор

Great Bert, very clear explanation on how to use the index.

robertgaudreau
Автор

Thanks! for explaining with practical examples

navedahmad
Автор

Thanks man, I was searching for a good explanation of the differences between both, this was perfect!

cedrics
Автор

Thank you very much, would be good if some examples were added, maybe it's already there in next videos

mehdizeynalov
Автор

Thanks, blue eyes! That was helpful. Can you do a video on ColumnStore Indexes, please?

yoanadimitrova
Автор

Indexes should not be used 1)on small tables 2)tables that have large batch updates or insert operations 3)not be used on tables with high number of null values4)columns that are frequently manipulated

anitha
Автор

this video is really helpful . I have a doubt. If I have defined clustered and non clustered index and we are inserting new row, it will add the newly added row in specific position and shift other rows as per clusterd index. So, how non clustered index is getting benefitted here on inserting new rows. And is that possible to have table without any clustered index.

trishlasaxena
welcome to shbcf.ru