SQL comes first so queries and JOINs are clear. PostgreSQL puts that SQL on a real database. MongoDB is the document model, for data whose shape is not fixed.
Roadmap
1. SQL
1. Tables and types
Columns, keys, and data types.
2. SELECT
Choose, filter, and sort rows.
3. JOIN
Connect tables without accidental duplicate rows.
4. Grouping
COUNT, SUM, and GROUP BY.
5. Changing data
INSERT, UPDATE, and DELETE with a condition.
6. Project
A set of analysis queries on related tables.
2. PostgreSQL
1. Install and connect
Create a database and open it with a client.
2. Tables and constraints
NOT NULL, UNIQUE, and foreign keys.
3. Practical queries
Core SQL on PostgreSQL, plus a few useful functions.
4. Views
A view for a query you run often.
5. Roles
Why the app should not connect as an admin.
6. Project
A few tables for a small product.
3. MongoDB
1. Documents and collections
How a document differs from a relational row.
2. CRUD
Insert, read, update, and delete.
3. Queries
Filter, sort, and limit results.
4. Modeling
What to embed and what to keep separate.
5. Indexes
Why a query gets slow, and what an index changes.
6. Project
Connect a small app to MongoDB.
Lessons inside Iran
In Iran, database teaching uses real tables and queries, not memorized command names.
Lessons for people outside Iran
If you live outside Iran and want a database teacher based in Iran, we study SQL, PostgreSQL, or MongoDB remotely.