Database Flashcards
Data integrity
Entity integrity: each set of data must be uniquely identified
Domain integrity: each field should adhere to the same format and definition
Referential Integrity: Foreign keys should point to existing primary key values
Data Redundancy
Situation where an identical field is repeated in two or more records
Can potentially lead to data anomalies and corruption and hence should be avoided
Data Dependency
Where data in different tables are related to each other
Occurs when one of the fields in the table leads the system to another table so that more information may be extracted from the same set of data
SQL vs NoSQL
Structured vs Unstructured
Strict vs Flexible
Scales up vs Scales out
Structured vs Unstructured
each field has a fixed data type
each record has the same fields
vs
not
Strict vs Flexible
Schema is difficult to change (due to defined constraints)
Maintains strict data integrity
vs
Allows hierarchical data storage (differentiating between fast and slow storage devices)
Scales up vs Scales out
Difficult to check constraints across multiple servers
Needs more powerful machine
vs
Collection can be split across multiple servers