Relational Databases Flashcards
1
Q
Benefits of Relational tables
A
- no data redundancy
(reduces risk of data-entry/saves space and processing power) - obtain complete information by joining data
(primary key, foreign key, descriptive attributes)
2
Q
Benefits of Flatfile
A
- easier for human visual consumption
- optimal for analyzing data
- NOT GOOD for data storage (redundancy)
3
Q
Difference between a database table and spreadsheet
A
A database:
- each columns require a name
- each column must contain same type of data
- each table must contain a unique identifier (primary key)
4
Q
Primary key vs Foreign key
A
primary key:
- uniquely identifies each row of data in a table (no duplicates)
- can be in more than one column
foreign key
- can be duplicate
- must reference primary key in another table
5
Q
A