Clustered and nonclustered indexes in sql server | SQL index | indexing in sql

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024
  • Video talks about
    what is clustered index in sql server
    what is nonclustered index in sql server
    difference between clustered and nonclustered indexes
    sql clustered index
    sql nonclustered index
    Step by step SQL Training videos
    SQL Tutorial
    for more videos
    / @training2sqlmsbi

Комментарии • 31

  • @ArunKumar-wf4rf
    @ArunKumar-wf4rf 2 года назад +1

    Clear explanation on clustered and non clustered index

  • @hemantkilanje8865
    @hemantkilanje8865 4 года назад +1

    Plz sir explain how work non clustered index.. How actually background It will create seperate space.. And how I will search key work

  • @kadalibhargavi2691
    @kadalibhargavi2691 Год назад +1

    Very clear explanation thankyou sir

  • @pvarunkumar8106
    @pvarunkumar8106 2 года назад

    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

  • @RaMeShBaBu-gf1wc
    @RaMeShBaBu-gf1wc 4 года назад +1

    Super nice explanation ❤️❤️❤️

  • @nickt423
    @nickt423 4 года назад +1

    @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?

    • @hemantkilanje8865
      @hemantkilanje8865 4 года назад +2

      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

  • @naveenkumarp9874
    @naveenkumarp9874 2 года назад +1

    Super explanation clearly understand the topic😇 really thank you

  • @asingh.singh70
    @asingh.singh70 2 года назад +1

    Lovely brother 🙏🙏

  • @durgaprasadchalla6885
    @durgaprasadchalla6885 2 года назад +1

    super..without any distrubance

  • @sankarv1651
    @sankarv1651 2 года назад +1

    Excellent sir

  • @baradiakshay8812
    @baradiakshay8812 6 лет назад +1

    can we create a cluster index without a primary key

    • @mansoorshaik7263
      @mansoorshaik7263 6 лет назад +2

      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')

  • @akashpatil9865
    @akashpatil9865 Год назад

    can we add multiple columns in non-clustered index?

  • @vishnum7751
    @vishnum7751 6 лет назад +2

    Good article

    • @Training2SQLMSBI
      @Training2SQLMSBI  6 лет назад

      Thanks for your feedback and appreciate your time..

  • @MuthuPandi-lw2bl
    @MuthuPandi-lw2bl 5 лет назад +1

    super

    • @Training2SQLMSBI
      @Training2SQLMSBI  5 лет назад

      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

  • @pathanibrahim1132
    @pathanibrahim1132 5 лет назад

    What is the difference between clustered index and unique clustered index. Both are same? Please explain

    • @hemantkilanje8865
      @hemantkilanje8865 4 года назад +1

      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

    • @yamalyamal6691
      @yamalyamal6691 2 года назад

      @@hemantkilanje8865 nope

  • @jasmeetsbhatia7
    @jasmeetsbhatia7 5 лет назад

    Very nicely explained sir.