Regarding MS SQL-Server,
Is the Primary Key column of a table, included in the regular non-unique indexes on that table?
if not, would it make sense to include it in the index?
create table dbo.People (
PK_PersonId int not null,
PersonName nvarchar (100),
Bunch of Other Fields
,
so when creating an index on PersonName, would it make sense to add the Primary Key column PK_PersonId?
When you create a PK in SQL Server, by default it creates a clustered index on those column(s)
when you create a non clustered index it either points back to the clustered index or if you don’t have a clustered index (your table is a heap) it points back to the table with a row locator
So in other words the non clustered index already has the PK value in it