Refer to Indexing before continuing. Primary key is indexed by default.
Example
Section titled “Example”CREATE INDEX idx_employee_name ON Employees (LastName, FirstName);Here:
idx_employee_nameis the name of the index.Employeesis the table on which the index is created.LastNameandFirstNameare the columns included in the index.
This index speeds up queries filtering or sorting by LastName and FirstName.