Describe options for storing data in databases Flashcards
1
Q
Define a database
A
A database is used to define a central system in which data can be stored and queried.
2
Q
What databases are there?
A
- Relational databases
- Non-relational databases
3
Q
What is a relational database?
A
- Commonly used to store and query strucutred data stored in tables that represent entities. Each entity instance is assigned a primary key that uniquely identifies it and used to reference the entity to other tables.
- This use of keys reference data entities enables a relational database to be normalized - elimination of duplicate data values.
- Tables are managed and queried using Structured Query Language (SQL).
4
Q
What is a non-relational database?
A
Are data management systems that d**on’t apply a relational schema **to the data. Often referred to as NoSQL database.
5
Q
What are common non-relational databased used?
A
- Key-value databases: each record consists of a unique key and an associated value in some format.
- Document databases: a specific form a key-value databases in which the value is a JSON document.
- Column family database: store tabular comprising of rows and columns, but the columns are grouped into column-families which are logically related.
- Group databases: store entities as nodes with links to define relationships between them.