Seven NoSQL Words Explained for SQL Learners

If you are learning SQL, articles about NoSQL can feel like a foreign language. Most of the vocabulary maps onto ideas you already know. Here are seven words you will meet most often, each explained by comparison with tables and rows.

Comparing database types illustration

1. Document

A record stored as a nested, JSON-like structure, used by databases such as MongoDB and CouchDB.

{"title": "Pancakes", "ingredients": ["flour", "milk", "eggs"]}

SQL comparison: roughly a row, except it can contain lists and nested objects instead of only flat columns.

2. Collection

A group of documents of a similar kind.

SQL comparison: roughly a table. Unlike a table, documents in one collection do not have to share exactly the same fields.

3. Key-value store

A database that stores values under keys and retrieves them by key, like a giant dictionary. Redis is a well-known example, often used as a cache.

SQL comparison: like a table with just two columns, key as the primary key and value, where you only ever look things up by key.

4. Schema-less (or flexible schema)

The database does not force every record to have the same fields.

SQL comparison: in SQL you define columns with CREATE TABLE first. "Schema-less" does not mean "no design": your app still expects certain fields. Many document databases let you add validation rules, which behave a bit like constraints.

5. Denormalisation

Deliberately storing the same information in more than one place so it can be read in one go, for example copying an author's name into every book document.

SQL comparison: the opposite of normalisation, which we explain in three takeaways. It trades easier reads for harder updates.

6. Eventual consistency

In some distributed databases, a change made in one place may take a short time to appear everywhere. Readers might briefly see old data, but "eventually" all copies agree.

SQL comparison: a single relational database usually shows your committed change immediately to everyone. Replicated SQL setups can show similar delays on read copies, so the idea is not unique to NoSQL.

7. Sharding

Splitting data across several machines, each holding part of it, for example customers A to M on one server and N to Z on another.

SQL comparison: one big table divided across servers. Relational databases can be sharded too, though it is more common to talk about it with NoSQL systems.

The seven at a glance

WordClosest SQL idea
DocumentRow (but nested)
CollectionTable
Key-value storeTwo-column table looked up by key
Schema-lessTable without fixed columns
DenormalisationRepeating data on purpose
Eventual consistencyReplicas that lag slightly
ShardingOne table split across servers

A calm conclusion

"SQL versus NoSQL" is often presented as a battle. In practice, many teams use both: a relational database for core records and a key-value store or document database for specific jobs. For learning, SQL first gives you ideas, keys, relationships and avoiding repetition, that make you better at every kind of database. For the same recipe stored both ways, see documents or rows?.

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.

Get new pages by email

Related pages on this site