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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What databases are there?

A
  1. Relational databases
  2. Non-relational databases
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are common non-relational databased used?

A
  1. Key-value databases: each record consists of a unique key and an associated value in some format.
  2. Document databases: a specific form a key-value databases in which the value is a JSON document.
  3. Column family database: store tabular comprising of rows and columns, but the columns are grouped into column-families which are logically related.
  4. Group databases: store entities as nodes with links to define relationships between them.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly