You get a bonus - 1 coin for daily activity. Now you have 1 coin

Summary - The physical model of a data warehouse

Lecture



Это окончание невероятной информации про физическая модель хранилища данных.

...

determines the physical order of the corresponding rows in the table. The bottom (leaf) level of such an index stores the actual data rows of the table. A table or view can have only one clustered index at any given time.

If the CLUSTERED argument is not specified, a nonclustered index is created.

  • NONCLUSTERED. Creates an index that specifies a logical ordering for the table. The logical order of the rows in a nonclustered index does not affect their physical order.
  • index_name. The name of the index. Index names must be unique within a table or view, but do not have to be unique within the database.
  • Column. The column or columns the index is based on. The names of one or more columns for creating a composite index. Columns to be included in a composite index are specified in parentheses after the table_or_view_name argument, in sort order.

A single composite index key can include up to 16 columns. All columns of a composite index key must belong to the same table or the same view. The maximum total size of the values in a composite index is 900 bytes.

  • [ ASC | DESC ]. Determines the sort order of the values of the given index column: ascending or descending. The default value is ASC.
  • INCLUDE ( column [ ,... n ] ). Specifies non-key columns to be added to the leaf level of the nonclustered index. A nonclustered index can be either unique or non-unique.

Column names in the INCLUDE list must not repeat and cannot be used simultaneously as both key and non-key columns.