SQL Flashcards
Cache
d
Checkpoint
d
Universal No Lock
SET TRANSACTION LEVEL READ COMMITED
Json
Identifies data types auto
OLAP Cube
Pre-groups to save time.
Normalization
d
Entity
Tables
Attributes
Columns
Primary Key
Unique value per row. Can be made up of multiple columns (composite) key. Functions as a target which a foreign key can reference.
Candidate Key
Possible primary keys.
Surrogate Keys
Alternate primary keys that can be used to check the validity of primary key.
Dependency
Columns retrievable by key? In order to lookup a value, you have to know the key first.
Denormalization
SAMS vs RAD
Duplication
Attribute unnecessarily repeated. (SAMS and RAD duplication.)
Fact Table
d
Dimension Table
d
Forms
Every attribute must provide a fact about the key, the whole key, and nothing but they key, so help me Codd.
1st Normal Form
No repeating columns.
2nd Normal Form
Non-key columns shouldn’t be dependent on a part of the primary key.
3rd Normal Form
All fields must only depend on a key. (3NF)
Overnormalization
d
String Values
Larger because there are way more than 9(10?) values per character.
1 Byte
0 to 255 (8 bit)
2 Byte
+-30,000 (smallint)
4? Byte
+- 2,000,000,000 (int) (32 bit)