Learning Hub
🗄️

Data & Databases

Choose, model, query, and operate data stores through practical examples.

Databases Roadmap: Store, Find, and Protect Information

Understand database choices without jargon, then practise modeling and querying a small product.

11 min readdatabase-foundationssqlnosqldata-modelingroadmap

Why databases exist

Databases provide durable shared state plus controlled reads, writes, concurrency, constraints, recovery, and querying—problems that ordinary files alone do not solve safely at scale.

6 min readdatabase-foundationspracticebeginner-friendly

Tables, documents, keys, indexes, and transactions

Tables organize related rows, documents group nested fields, keys identify and connect records, indexes accelerate selected access paths, and transactions protect multi-step invariants.

6 min readdatabase-foundationspracticebeginner-friendly

Choose SQL or NoSQL with a decision tree

Choose a database from access patterns, consistency, relationships, scale, operational skills, and change needs—not fashion. SQL and NoSQL are broad families with overlapping capabilities.

6 min readdatabase-foundationspracticebeginner-friendly

Model a small shop database

A useful data model represents business facts, identities, relationships, constraints, and lifecycle—not merely screen fields. Start from questions the system must answer.

6 min readdatabase-foundationspracticebeginner-friendly

Read data with SELECT

SELECT turns a data question into a reproducible result by naming columns, source, conditions, ordering, and limits. Correctness matters before cleverness.

6 min readsqlpracticebeginner-friendly

Filter, sort, group, and join

Filtering selects rows, sorting orders results, grouping summarizes sets, and joining combines related tables. Query correctness begins with expected rows before syntax.

6 min readsqlpracticebeginner-friendly

Create and change data safely

Safe INSERT, UPDATE, and DELETE work starts with constraints and a narrow selection, runs inside a transaction when appropriate, and verifies affected rows before commit.

6 min readsqlpracticebeginner-friendly

SQL practice set with answers

SQL practice works best when each exercise begins with an expected result and ends by comparing an alternative query, edge cases, and an execution plan.

6 min readsqlpracticebeginner-friendly

MySQL starter project

A MySQL starter becomes valuable when schema constraints, repeatable seed data, transactions, queries, and cleanup are versioned together.

6 min readmysqlpracticebeginner-friendly

PostgreSQL starter project

A PostgreSQL starter should make constraints, migrations, transactions, query plans, and reproducibility visible from the first small project.

6 min readmysqlpracticebeginner-friendly

MongoDB starter project

A MongoDB starter should teach document boundaries, embedding versus references, indexes, validation, and observable queries—not only connection setup.

6 min readmysqlpracticebeginner-friendly

Compare MySQL, PostgreSQL, and MongoDB

MySQL and PostgreSQL are relational databases with SQL and transactions; MongoDB stores BSON documents with flexible nesting. Compare concrete workload fit, guarantees, tooling, and team experience.

6 min readmysqlpracticebeginner-friendly

Indexes and query performance

An index is an additional ordered data structure that can reduce reads for matching access patterns at the cost of storage and slower writes. Execution plans show whether it helps.

6 min readdatabase-operationspracticebeginner-friendly

Backup and restore

A backup is only a candidate for recovery until a restore proves it is complete, readable, timely, and independent of the original failure. Recovery point and recovery time objectives make expectations measurable.

6 min readdatabase-operationspracticebeginner-friendly

Replication and partitioning

Replication keeps copies of data for availability and read scale; partitioning divides a dataset for capacity and throughput. Each adds coordination and failure modes.

6 min readdatabase-operationspracticebeginner-friendly