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)
SELECT
basics and selecting specific columns- Filtering with
WHERE
(=
,>
,<
,LIKE
,BETWEEN
,IN
) - Removing duplicates with
DISTINCT
- Sorting results with
ORDER BY
- Using
LIMIT
for result control
- Adding data with
INSERT
- Changing data with
UPDATE
- Removing data with
DELETE
andTRUNCATE
- Understanding primary & foreign keys
- Joining tables:
INNER
,LEFT
,RIGHT
,FULL
- Aggregating with
GROUP BY
andHAVING
- 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
EXPLAIN
for 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