icon icon

PostgreSQL Advanced Course

icon

Training process

Training needs analysis

If you have specific requirements regarding the training programme, we will carry out a training needs analysis for you. This will guide us on which aspects of the programme should receive greater emphasis, so that the training programme meets your specific needs.

What will you gain?

icon

Better data modeling - You will learn how to design 1:1, 1:n and m:n relationships and choose data types that keep your database consistent, readable and easier to extend and report on later.

icon

Advanced SQL queries - You will write more precise queries with subqueries, joins, CTEs and conditional expressions, so you can prepare complex analyses and reports faster and with more confidence.

icon

Clear data reporting - You will master aggregations, STRING_AGG, and ROLLUP, CUBE and GROUPING SETS, so you can build cross-sectional reports and summaries without moving data to other tools.

icon

Confident data operations - You will practice INSERT, UPDATE, DELETE and MERGE, which will help you handle data changes more safely and organize your day-to-day work with PostgreSQL records more effectively.

icon

Import, export and JSON - You will see how to analyze PostgreSQL data in Excel and use JSON functions, so you can process semi-structured data more easily and exchange it between systems with less effort.

icon

Faster queries - You will learn how to read execution plans with EXPLAIN and choose indexes for specific query patterns, helping you remove bottlenecks and improve overall database performance.

icon

Practical window analytics - You will use window functions such as RANK, LAG, LEAD, ROW_NUMBER and NTILE to compare rows, track changes and build analytical queries without overly complex SQL code.

icon

Confidence with PostgreSQL - You will organize your knowledge of schemas, database objects, logical operators and regular expressions, so you can read existing SQL faster and write your own queries more reliably.

Training programme

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.

What are the prerequisites for participating in the training?

icon

SQL basics - You should be comfortable writing simple SELECT queries with filtering, sorting and basic GROUP BY, so you can focus on advanced topics instead of absolute SQL fundamentals.

icon

Relational database knowledge - You should understand tables, columns, primary and foreign keys, and relationships between data, because the training expands these ideas into more complex database models.

icon

Hands-on data work - It helps if you have experience reading and modifying data in a database, because the training includes work with queries, reports, and INSERT, UPDATE and DELETE operations.

icon

Basic PostgreSQL exposure - You should have some basic experience with PostgreSQL or a similar SQL engine, so you can navigate schemas, functions, indexes and query plan analysis without difficulty.