
280 ◾ Cloud Database Development and Management
combination must be unique. However, the uniqueness is not required for a single column on
which a clustered index is created because the clustered index enforces the uniqueness by creating
an associated sorting column containing only unique values.
8.3.1 Create Indexes
One way to create an index is to use the SQL statement CREATE INDEX. e CREATE INDEX
syntax has many optional parameters as shown below:
CREATE [UNIQUE][CLUSTERED|NONCLUSTERED] INDEX index_name
ON [table_name | view_name] (column_name [ASC | DESC] [,...n])
[INCLUDE (column_name [,...n])]
[WHERE <filter_predicate>]
[WITH [index_property ...