Opleiding: Queries with PostgreSQL
In the course Queries with PostgreSQL from SpiralTrain, participants learn the syntax and use of the query language SQL in the context of a PostgreSQL database.SQL Intro
After an introduction to relational databases, the SQL standard and PostgreSQL, the installation of PostgreSQL, the PostgreSQL environment and tooling are discussed. PostgreSQL, like other DBMS systems, has added extra features of its own to standard SQL and these are also covered in the course.
SQL Data Definition
In the first place it is covered how SQL statements can be created and executed in PostgreSQL. Subsequently, the various components of SQL are discussed step-by-step, such as Data Definition Language with CREATE TABLE and Data Manipulation Language with INSERT and UPDATE.
SQL Select Queries
Next attention is paid to writing SELECT queries. This includes clauses such as WHERE, ORDER BY, LIKE and BETWEEN .. AND. The grouping of data by means of GROUP and HAVING clauses is also on the course schedule.
SQL Functions
The various standard SQL functions are also discussed. Among other things, the mathematical, conversion and aggregation functions for calculating sum and average are treated. Attention is also paid to PostgreSQL specific functions for pattern matching and the processing of geometric and XML data.
Transactions
PostgreSQL is known for its robust referential and transactional integrity. In that respect the relationship between primary and foreign keys and restrictive and cascading foreign keys is treated. Also covered is how PostgreSQL handles transactions, the commit and rollback statements and how to prevent data corruption in PostgreSQL.
Join
Next it is discussed how to combine data from different tables by means of joins. The various types of joins such as inner joins, left outer joins, right joins, right outer joins and full outer joins are discussed. Finally attention is paid to the application of SET operators such as UNION and INTERSECT and the command line interface of PostgreSQL is also treated.
Audience Course Queries with PostgreSQL
The course Queries with PostgreSQL is designed for developers, database administrators and other interested parties who wish to learn and use PostgreSQL SQL.
Prerequisites Course Queries with PostgreSQL
This course has no specific requirements. General knowledge of system development and databases is beneficial to a good understanding.
Realization Training Queries with PostgreSQL
The theory is treated on the basis of presentation slides. Demos are used to explain the theory. There is ample opportunity to practice. The course times are from 9.30 to 16.30.
Certification Queries with PostgreSQL
Participants receive an official certificate Queries with PostgreSQL after successful completion of the course.
Modules
Module 1 : PostgreSQL Introduction
- Databases
- DBMS Systems
- Types of Database Models
- Entities and relationships
- Relational databases
- PostgreSQL tools
- Installing PostgreSQL
- PostgreSQL versions
Module 2 : SQL Introduction
- SQL Foundations
- PostgreSQL GUI Client
- Connection Navigator
- Creating and Using Connections
- SQL Worksheet
- Statements and execution
- SQL History
- Storing statements
Module 3 : Data Definition
- CREATE TABLE
- Specifying Columns
- ALTER TABLE
- NULL and Default Values
- DROP COLUMN
- DROP TABLE
- PURGE
- Virtual columns
Module 4 : Data Manipulatie
- Data Manipulation Language
- Transaction control
- Inserting rows
- INSERT statement
- Updating rows
- UPDATE statement
- DELETE statement
- TRUNCATE TABLE
- DML on virtual columns
Module 5 : SQL Queries
- Selecting rows
- SELECT statement
- FROM clause
- Specifying conditions
- WHERE clause
- Sorting with ORDER BY
- NULLs, FIRST, LAST
- Removing Doubles
- BETWEEN, IN, ANY, ALL
Module 6 : Grouping
- GROUP BY clause
- Filtering groups
- HAVING clause
- Operators
- String and Date Operators
- Concatenate operator
- PostgreSQL Encode
- Operators for patterns
- Operators for intervals
Module 7 : Functions
- Function of column values
- Using functions
- SELECT clause functions
- WHERE clause functions
- GROUP BY clause functions
- HAVING clause functions
- ORDER BY clause functions
- String and Arithmetic functions
- Date and Conversion functions
- National Language Support
- NLS parameters
- Cast
Module 8 : Joins
- Joining Multiple Tables
- Normal Joins
- Outer Join
- Inner joins
- Left Outer Joins
- Right Joins,
- Right Outer Joins
- Full Outer Joins
- Multiple Join Vonditions
- Subselections
- Sub Queries
- EXISTS
Module 9 : SET Operators
- SET Operatoren
- UNION
- UNION ALL
- INTERSECT
- MINUS
- Nesting of SET operators
- Working with Command Line
- Connect statement and /nolog
- SQL buffer
- Storing statements
- Spool files
- Transaction control