Purpose: Improves search performance when queries filter or sort by the ProductName column.
NONCLUSTERED INDEX: Creates a separate structure from the table’s data, pointing to the rows where the ProductName exists.
idx_ProductName: This is the custom name of the index (you can name it anything).
SQL Query:
CREATE NONCLUSTERED INDEX idx_ProductName
ON Products(ProductName);
