Database Flashcards

1
Q

FNF

A

Each table cell should contain a single value
Each record needs to be unique

Composite key consists of several columns

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

SNF

A
  • BE in FNF
    Single column primary key does not depend on any subset of candidate key relation
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

TNF

A
  • Be in SNF
  • No transitive functional dependencies
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

BCNF

A

If there is more than one Candidate Key

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

Transaction Isolation Levels

A

-Read Uncommitted

-Read Committed - issue exclusive locks at the time of modification. Prevents Dirty Read. However data can be changed between individual statements

-Repeatable Read - Shared locks are placed on all data read by each statement. Data that has been read cannot be modified

-Snapshot Isolation - Data read at the beginning of the transaction will be the same as the end of the transaction. Snapshot do not block transactions from reading or modifying the data.

-Serializable - the most strict level of isolation. Transactions cannot read nor write any data before the transaction finished

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

Clustered vs non clustered indexes

A

Clustered indexes are part of the table structure
Non-clustered indexes are a separate structure with pointers to the actual data

Clustered indexes are in most common cases faster

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