Databases and SQL Flashcards
1
Q
what is a database?
what is a flat-file database?
what is a relational database?
A
- a database is where you can store data in an organised way, allowing data to be found easier as well.
- a flat-file database is where there is only one table to store data.
- a relational database is where it has more than one table and linked using key feilds.
2
Q
what is data redundancy?
what is data inconsistency?
A
- where data is repeated in a database table.
- links to data redundancy. if data is repeated, is it always the same data?
3
Q
what is a table?
what is a field?
what is a record?
A
- a collection of records for a specific theme.
- categories for each piece of data in a table.
- data for one object, person or place.
4
Q
what is a foreign key?
what is a primary key?
A
- when a column in one table is the same to another in a different table.
- the field that uniquely identifies a record