SQL Server 2005 includes "covering index" feature which allows us to select more than one non key column to be included to the existing non clustered index.
For example, I have the following columns:
EmployeeID, DepartmentID, DesignationID, BranchID
Here are two scenarios:
EmployeeIDis a primary key with clustered index and the remaining columns (DepartmentID,DesignationID,BranchID) are taken as non clustered index (composite index).EmployeeIDis a primary key with clustered index andDepartmentIDis non clustered index withDesignationID,BranchIDare "included columns" for non clustered index.
What is the difference between the above two? If both are same what's new to introduce "Covering Index" concept?