SQL4 Flashcards
Five normalization forms?
1NF: eliminate repeating group (duplications,multi valued attributes, same data type)
2NF: eliminate redundant data
3NF: eliminate columns not dependent on key (a fact about the key,the whole key, and nothing but the key)
4NF: isolate independent multiple relationships
5NF: isolate semantically related multiple relationships
Normalization?
In a nutshell, is the elimination of redundant data to save space
Three different types of constrains?
Primary key: an attribute or set of attributes that can be used to uniquely identify each row.
Foreign key
Composite ( unique) key
All the potential keys are known as candidate keys
A composite primary key?
To define more than one column as your primary key
Many to many relationship
Two types of indexes?
Clustered: is sorted and stored based on key values.(=row locator)
Non-clustered: the data rows are stored in an unordered structure. (Pointer-heap-row locator)
Only one clustered index is allowed for each table