SQL4 Flashcards

0
Q

Five normalization forms?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
1
Q

Normalization?

A

In a nutshell, is the elimination of redundant data to save space

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Three different types of constrains?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

A composite primary key?

A

To define more than one column as your primary key

Many to many relationship

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Two types of indexes?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly