1. Comprehensive introduction to PostgreSQL
At the database design level, relationships, structures and types determine how queries behave. The module reviews 1:1, 1:n and m:n models, schemas and database objects, then connects data types and logical operators with practical modeling and query execution decisions.
- 1:1, 1:n, m:n models and joins,
- schemas, database objects,
- data types and their impact on modeling and query execution,
- logical operators AND, OR, BETWEEN, EXISTS, IN, LIKE, NOT, SOME, ALL – review.
2. Issues related to creating advanced SQL queries and reports
Building reliable reports often means combining several SQL techniques in one statement. This section covers filtering, joins, correlated and uncorrelated subqueries, CTEs, aggregates, multidimensional grouping, STRING_AGG, conditional expressions and REGEX for more flexible result shaping.
- data filtering,
- basic DISTINCT functions,
- correlated and uncorrelated subqueries,
- joins,
- Common Table Expression (CTE), that is the WITH construct,
- aggregate functions MAX, MIN, AVG, COUNT, SUM,
- multidimensional grouping:
- Rollup,
- Cube,
- Grouping Sets,
- grouping with the STRING_AGG() function,
- conditional expressions:
- CASE,
- COALESCE,
- NULLIF,
- GREATEST and LEAST,
- REGEX regular expressions.
3. Detailed discussion of CRUD operations (Create, Read, Update, Delete) in PostgreSQL
Day-to-day database work relies on precise data modification commands. Here the focus is on INSERT, UPDATE, DELETE and MERGE, with attention to how these statements are used to add new records, change existing rows and synchronize data sets in PostgreSQL.
- INSERT, UPDATE, DELETE, MERGE.
4. Practical techniques for importing and exporting data in PostgreSQL
Working with data beyond the database requires efficient exchange mechanisms. The section covers using PostgreSQL data in Excel for analysis and reporting, and explains JSON functions used to read, transform and handle values stored in JSON structures.
- data analysis from Postgres in Excel,
- JSON – functions handling data stored in JSON format.
5. Advanced query performance optimization techniques in PostgreSQL
Query speed depends largely on how PostgreSQL accesses data. This part focuses on index types and their role in execution plans, then shows how to read Explain output to identify bottlenecks and choose optimization steps based on actual query behavior.
- overview of indexes,
- performance analysis using Explain.
6. Introduction to advanced data analysis techniques in PostgreSQL
Window functions form the core of this module. Participants work with ranking and distribution functions such as RANK, DENSE_RANK, PERCENT_RANK, NTILE and CUME_DIST, then use ROW_NUMBER, LAG, LEAD and value functions to compare rows and analyze ordered datasets.
- RANK / DENSE_RANK / PERCENT_RANK,
- FIRST_VALUE / LAST_VALUE,
- LAG / LEAD,
- NTILE,
- NTH_VALUE,
- ROW_NUMBER,
- CUME_DIST.