Goal: Train veterans to confidently use PostgreSQL for storing, retrieving, and managing mission-critical data.
- History & military roots (DARPA funding, Postgres origins)
- Installing and connecting to PostgreSQL
- Understanding databases, tables, rows, columns
- Core SQL categories: DDL, DML, DQL, DCL, TCL
- PostgreSQL data types (numeric, text, date/time, JSON)
SELECTbasics and selecting specific columns- Filtering with
WHERE(=,>,<,LIKE,BETWEEN,IN) - Removing duplicates with
DISTINCT - Sorting results with
ORDER BY - Using
LIMITfor result control
- Adding data with
INSERT - Changing data with
UPDATE - Removing data with
DELETEandTRUNCATE
- Understanding primary & foreign keys
- Joining tables:
INNER,LEFT,RIGHT,FULL - Aggregating with
GROUP BYandHAVING - Using subqueries
- Normalization basics (1NF, 2NF, 3NF)
- Constraints:
NOT NULL,UNIQUE,PRIMARY KEY,FOREIGN KEY,CHECK - Creating & altering tables (
CREATE,ALTER,DROP) - Indexes for performance
- Window functions (
ROW_NUMBER,RANK) - Common Table Expressions (CTEs)
- JSON and Array support in Postgres
- Using
EXPLAINfor query optimization
- Roles and permissions (
GRANT,REVOKE) - Backups & restores (
pg_dump,pg_restore) - Basic performance tuning
- Maintenance tasks (
VACUUM,ANALYZE)
- Build and query a PostgreSQL database using real-world veteran-related datasets
- Create reports and dashboards using SQL queries
- Implement a role-based permission system