NONCLUSTERED
Example
Section titled “Example”CREATE NONCLUSTERED INDEX idx_employee_lastnameON Employee(LastName);Output
Section titled “Output”Command(s) completed successfully.Explanation
Section titled “Explanation”The above SQL command creates a nonclustered index, idx_employee_lastname, on the LastName column of the Employee table. This index helps in swiftly accessing the rows in the Employee table based on the LastName field. The confirmation message “Command(s) completed successfully.” implies that the index has been created successfuly.