Diagram Desk

SQL vs NoSQL comparison table

Relational (SQL) and NoSQL databases by data model, schema, scaling and best fit, for concept questions and technology decisions.

The diagram

SQLNoSQLData modelTables of rows and columnsDocuments, key-value,graphsSchemaDefined up frontFlexibleScalingMostly verticalMostly horizontalBest fitOrders and accountingLogs and live feeds
Comparison table · 6 shapes

Reading it step by step

  • Data model: SQL Tables of rows and columns; NoSQL Documents, key-value, graphs
  • Schema: SQL Defined up front; NoSQL Flexible
  • Scaling: SQL Mostly vertical; NoSQL Mostly horizontal
  • Best fit: SQL Orders and accounting; NoSQL Logs and live feeds

Shape by shape

ShapeSymbolConnections
SQLOption← Data model: Tables of rows and columns, Schema: Defined up front, Scaling: Mostly vertical, Best fit: Orders and accounting
NoSQLOption← Data model: Documents, key-value, graphs, Schema: Flexible, Scaling: Mostly horizontal, Best fit: Logs and live feeds
Data modelCriterion→ SQL: Tables of rows and columns, NoSQL: Documents, key-value, graphs
SchemaCriterion→ SQL: Defined up front, NoSQL: Flexible
ScalingCriterion→ SQL: Mostly vertical, NoSQL: Mostly horizontal
Best fitCriterion→ SQL: Orders and accounting, NoSQL: Logs and live feeds

Symbols used here

SymbolMeaning
OptionThe column headings.
CriterionThe row headings.

All comparison table symbols and how to draw

Diagram text

Paste this text into the editor to get the same picture, then change the names to fit your own work.

# SQL vs NoSQL comparison table
compare
| - | SQL | NoSQL |
|---|---|---|
| Data model | Tables of rows and columns | Documents, key-value, graphs |
| Schema | Defined up front | Flexible |
| Scaling | Mostly vertical | Mostly horizontal |
| Best fit | Orders and accounting | Logs and live feeds |

More comparison table examples

All SeewolLabs tools