One table have only one clustered index... But we can create clustered index on multiple column ... Like primary key.... Even when we create primary key then clustered index automatically create on that table
Yes you can create a Clustered Index with out a primary key, But when insert any records in a table like this the order of insertion will be same as your insert order ... But when you create Primary key a default Clustered Index will be generated and try to insert the records in any order but SQL Server engine will insert in ascending order (Default)create table test -- with out primary key and creating a clustered index ( id int, name varchar(100)) Create Index IX_ID on test(id) Insert into test values(2,'a') Insert into test values(3,'b') Select * from test Insert into test values(1,'New')Drop the test table and create again with primary keycreate table test -- With Primary Key ( id int primary key, name varchar(100)) Create Index IX_ID on test(id) Insert into test values(2,'a') INsert into test values(3,'b') Select * from test Insert into test values(1,'New')
Unique clustered index is nothing but unique constraint. .. It will only uniquely identify records... And we can create multiple unique constraint on one table but one table have only one clustered index
Thanks a lot for your feedback.. More videos on the same technology stack .. ruclips.net/video/vbp2yPyUf9o/видео.html ruclips.net/video/yUoDrqSRt6A/видео.html ruclips.net/video/QOHxfeJ8VWE/видео.html ruclips.net/video/x5iVbr94FqE/видео.html ruclips.net/video/92OSTvW0Ge8/видео.html ruclips.net/video/DBCCk8Yn7SM/видео.html ruclips.net/video/NmqTJSHN8Ic/видео.html ruclips.net/video/D8uiujYQTxw/видео.html ruclips.net/video/upZsqwxZX2M/видео.html ruclips.net/video/4EvEeN0pUBo/видео.html ruclips.net/video/vwdeItscq7o/видео.html ruclips.net/video/ZTSw89A1ZUg/видео.html ruclips.net/video/sqX62jK0Vc8/видео.html ruclips.net/video/DLn01pA1qcA/видео.html ruclips.net/video/AFsuZ2XGlbg/видео.html
Very clear explanation thankyou sir
You're most welcome
@8:04
I thought you can have a clustered index on only one column. Here you're saying you can have a clustered index on multiple columns?
One table have only one clustered index... But we can create clustered index on multiple column ... Like primary key.... Even when we create primary key then clustered index automatically create on that table
Clear explanation on clustered and non clustered index
Thanks for your feedback.
Super explanation clearly understand the topic😇 really thank you
Glad to hear that.. you are welcome..
Plz sir explain how work non clustered index.. How actually background It will create seperate space.. And how I will search key work
super..without any distrubance
Thank you very much
Excellent sir
Many many thanks
Lovely brother 🙏🙏
Super nice explanation ❤️❤️❤️
thanks for your kind words.
can we add multiple columns in non-clustered index?
Yes we can
can we create a cluster index without a primary key
Yes you can create a Clustered Index with out a primary key, But when insert any records in a table like this the order of insertion will be same as your insert order ... But when you create Primary key a default Clustered Index will be generated and try to insert the records in any order but SQL Server engine will insert in ascending order (Default)create table test -- with out primary key and creating a clustered index
( id int,
name varchar(100))
Create Index IX_ID on test(id)
Insert into test values(2,'a')
Insert into test values(3,'b')
Select * from test
Insert into test values(1,'New')Drop the test table and create again with primary keycreate table test -- With Primary Key
( id int primary key,
name varchar(100))
Create Index IX_ID on test(id)
Insert into test values(2,'a')
INsert into test values(3,'b')
Select * from test
Insert into test values(1,'New')
What is the difference between clustered index and unique clustered index. Both are same? Please explain
Unique clustered index is nothing but unique constraint. .. It will only uniquely identify records... And we can create multiple unique constraint on one table but one table have only one clustered index
@@hemantkilanje8865 nope
Very nicely explained sir.
it's gud. u created the non clustered index, but , u r forgot to call the non clustered index. if u do that , it's better to us, yo know hw it's comes
Good article
Thanks for your feedback and appreciate your time..
super
Thanks a lot for your feedback..
More videos on the same technology stack ..
ruclips.net/video/vbp2yPyUf9o/видео.html
ruclips.net/video/yUoDrqSRt6A/видео.html
ruclips.net/video/QOHxfeJ8VWE/видео.html
ruclips.net/video/x5iVbr94FqE/видео.html
ruclips.net/video/92OSTvW0Ge8/видео.html
ruclips.net/video/DBCCk8Yn7SM/видео.html
ruclips.net/video/NmqTJSHN8Ic/видео.html
ruclips.net/video/D8uiujYQTxw/видео.html
ruclips.net/video/upZsqwxZX2M/видео.html
ruclips.net/video/4EvEeN0pUBo/видео.html
ruclips.net/video/vwdeItscq7o/видео.html
ruclips.net/video/ZTSw89A1ZUg/видео.html
ruclips.net/video/sqX62jK0Vc8/видео.html
ruclips.net/video/DLn01pA1qcA/видео.html
ruclips.net/video/AFsuZ2XGlbg/видео.html