Programming Index Cards

July 3, 2008

SQL Server Indexes

Filed under: SQL Server, database, database design — Tags: , , — apcig @ 4:09 pm

Clustered index
- reorders the way records in the table are physically stored
- a table can have only one clustered index
- the leaf nodes of a contain the data pages.

Nonclustered index
- the logical order of the index does not match the physical stored order of the rows on disk
- the leaf nodes of a nonclustered index do not consist of the data pages. Instead, they contain index rows.

Sources: FAQ: clustered vs nonclustered indexes

June 25, 2008

1-2-3 Normal forms

Filed under: database, database design — Tags: , , , — apcig @ 7:35 pm

1st Normal Form – Eliminate Repeating Groups (ERG)
all occurrences of a record type must contain the same number of fields. No sets

2nd Normal Form – Eliminate Redundant Data (ERD)
violated when a non-key field is a fact about a subset of a key.

3rd Normal Form – Eliminate Columns Not Dependent on Key (ENDK)
violated when a non-key field is a fact about another non-key field.

All normal forms are additive.

Source

Blog at WordPress.com.