I am new to indexing in general and have just started learning about query plans etc. I am working on this one specific query that keeps advising me to create the following index:
CREATE NONCLUSTERED INDEX [<Name of Missing Index, sysname,>]
ON [dbo].[Company] ([CreatedById],[TenantId],[CreatedDate])
I already have the following index created:
CREATE NONCLUSTERED INDEX [IX_Company_Tenant]
ON [dbo].[Company] ([TenantId],[UserId],[CreatedDate])
What i am wondering is, will i get the same result in speed increase if i changed the already created index to be:
CREATE NONCLUSTERED INDEX [IX_Company_Tenant]
ON [dbo].[Company] ([TenantId],[UserId],[CreatedDate], [CreatedByID])
Instead of creating the index that is being suggested by the query store?
EDIT
Even after applying the third index:
CREATE NONCLUSTERED INDEX [IX_Company_Tenant]
ON [dbo].[Company] ([TenantId],[UserId],[CreatedDate], [CreatedByID])
I still get the same suggested index.