1-- Create a nonclustered index on a table or view
2CREATE INDEX i1 ON t1 (col1);
3
4-- Create a clustered index on a table and use a 3-part name for the table
5CREATE CLUSTERED INDEX i1 ON d1.s1.t1 (col1);
6
7-- Syntax for SQL Server and Azure SQL Database
8-- Create a nonclustered index with a unique constraint
9-- on 3 columns and specify the sort order for each column
10CREATE UNIQUE INDEX i1 ON t1 (col1 DESC, col2 ASC, col3 DESC);
11