The Landscape of Database Types for Newcomers
"Database" covers a lot of different software. If you are new, the list of names can feel endless. This overview sorts them into a few families, explains what each family is good at, and suggests where a beginner should start.
Family 1: relational databases
What they are: data lives in tables with rows and columns. Tables are linked by keys, and you ask questions in SQL.
Well-known examples: PostgreSQL, MySQL, MariaDB, SQLite, Microsoft SQL Server, Oracle Database.
Good at: data with clear structure and relationships, such as customers, orders and products, and keeping data consistent with rules.
Who makes them: some are open-source projects run by communities or foundations (PostgreSQL, SQLite); some are products from companies that also offer free editions (MySQL from Oracle, SQL Server from Microsoft).
Family 2: document databases
What they are: data is stored as documents, usually in a JSON-like format. Each document can have its own shape.
Well-known example: MongoDB.
Good at: data whose structure varies between records, and apps that read and write whole objects at once.
Family 3: key-value stores
What they are: like a giant dictionary. You store a value under a key and get it back by the same key.
Well-known example: Redis.
Good at: very fast lookups, such as caching, session data and counters.
Family 4: graph databases
What they are: data is stored as nodes (things) and edges (connections between things).
Well-known example: Neo4j.
Good at: questions about connections, such as "friends of friends" or routes through a network.
Other families you may hear about
- Wide-column stores such as Apache Cassandra, built for spreading huge amounts of data across many machines.
- Search engines such as Elasticsearch and OpenSearch, built for full-text search.
- Time-series databases, built for measurements recorded over time.
The families side by side
| Family | Data looks like | Query style | Typical beginner use |
|---|---|---|---|
| Relational | Tables | SQL | First database for most learners |
| Document | JSON-like documents | Query API | Flexible app data |
| Key-value | Key → value | Get and set | Caching |
| Graph | Nodes and edges | Graph query languages | Connected data |
Open questions in the field
Lines between families are blurring. PostgreSQL can store and query JSON documents. MongoDB supports multi-document transactions. Many products now mix features. That is why learning the underlying ideas matters more than memorising product names.
Where should a beginner start?
With a relational database and SQL. The ideas you learn there, such as tables, keys, joins and constraints, help you understand every other family, and SQL is used in a huge number of jobs and projects. SQLite is the easiest way in, because it needs no server. Our plain guide to relational and NoSQL databases goes deeper on the difference.
A free learning page for beginners. Practise on a test database, never on real customer data, and check the official documentation for your database version.
General commentary only: this page does not report specific news events and does not cite a survey or data source. Treat any trends described as unverified.