1. Introduction to the PostgreSQL database management system
From a relational perspective, the course establishes how PostgreSQL organizes data through schemas, database objects, and relationship models such as 1:1, 1:n, and m:n. It also addresses data types, logical operators, and the foundations needed to start writing SQL queries correctly.
- database basics,
- 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,
- creating SQL queries.
2. Detailed discussion of creating SQL queries in PostgreSQL
Building SQL queries in PostgreSQL involves combining filtering, joins, subqueries, and CTEs to retrieve and organize data. The material also includes aggregate and ranking functions, date and time handling, multidimensional grouping, and conditional expressions such as CASE and NULLIF.
- data filtering,
- basic functions such as Count and Distinct,
- subqueries,
- joins,
- Common Table Expression (CTE), that is the WITH construct,
- built-in functions and procedures,
- date and time functions,
- aggregate functions MAX, MIN, AVG, COUNT, SUM,
- multidimensional grouping:
- grouping with the STRING_AGG() function,
- ranking functions RANK() and DENSE_RANK(),
- NULLIF and CASE,
- IIF, CHOOSE.
3. Discussion of CRUD operations (Create, Read, Update, Delete) in PostgreSQL
At the level of daily database operations, data must be added, changed, and removed safely and predictably. This section focuses on the practical use of INSERT, UPDATE, and DELETE statements, showing how records are maintained in PostgreSQL tables.
4. Practical approach to data import and export operations in PostgreSQL
Working with data flow between PostgreSQL and external sources requires both structure and tooling. This part covers data modeling basics, importing from flat files and existing relational databases, exporting with built-in tools, and using Excel to analyze data extracted from Postgres.
- data structure and modeling,
- analysis of data from Postgres in Excel,
- import of data from flat files or existing relational databases,
- built-in data import and export tools.
5. Detailed discussion of indexes in PostgreSQL
Indexes in PostgreSQL are discussed from the perspective of how they support data access and query execution. The section explains the role of indexes in database structures, when they are useful, and how they relate to everyday work with tables and SQL statements.