Databases Flashcards

1
Q

SQL vs NoSQL

A
SQL
Structured Query Language
Most Popular
MySQL
PostgreSQL
NoSQL
Not Only Structured Query Language
Most Popular
MongoDB
Redis
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Differences

A
1. Structure
SQL
Table Format, kind of like a Excel Sheet
Missing cells, will contain Null
Consistent Structure
NoSQL
JSON Object structure
Flexible Structure
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. Relationships
A
SQL
Relational
Good for many-to-many relationships
Can have multiple tables, and we can link a relationship between them
Will lead to less repetitive data
NoSQL
Non-Relational
Can lead to repetitive data
Good for 1-to-many type relationships
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. Scalability
A

SQL
Becomes slower with more rows of data
NoSQL
Better for scalability

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