58_SQL vs. NoSQL
58_SQL vs. NoSQL
(/learn)
• SQL
• NoSQL
• High level differences between SQL and NoSQL
In the world of databases, there are two main types of solutions: SQL and
NoSQL (or relational databases and non-relational databases). Both of
them differ in the way they were built, the kind of information they store,
and the storage method they use.
SQL#
Relational databases store data in rows and columns. Each row contains
all the information about one entity and each column contains all the
separate data points. Some of the most popular relational databases are
MySQL, Oracle, MS SQL Server, SQLite, Postgres, and MariaDB.
https://www.educative.io/courses/grokking-the-system-design-interview/YQlK1mDPgpK 1/6
01/06/2022, 00:29 SQL vs. NoSQL - Grokking the System Design Interview
NoSQL#
Following are the most common types of NoSQL:
Graph Databases: These databases are used to store data whose relations
are best represented in a graph. Data is saved in graph structures with
nodes (entities), properties (information about the entities), and lines
(connections between the entities). Examples of graph database include
Neo4J and InfiniteGraph.
NoSQL databases have different data storage models. The main ones are
key-value, document, graph, and columnar. We will discuss differences
https://www.educative.io/courses/grokking-the-system-design-interview/YQlK1mDPgpK 2/6
y
01/06/2022, 00:29
, ,g p , SQL vs. NoSQL - Grokking the System Design Interview
In NoSQL, schemas are dynamic. Columns can be added on the fly and
each ‘row’ (or equivalent) doesn’t have to contain data for each ‘column.’
https://www.educative.io/courses/grokking-the-system-design-interview/YQlK1mDPgpK 3/6
01/06/2022, 00:29 SQL vs. NoSQL - Grokking the System Design Interview
Back Next
Completed
Report an Issue
https://www.educative.io/courses/grokking-the-system-design-interview/YQlK1mDPgpK 6/6