SQL for PostgreSQL

Course Code: PSQL

Duration: 3 days

 
 
 
 

SQL for PostgreSQL Course Overview

The SQL for PostgreSQL course is designed to give delegates practical experience in writing SQL statements and scripts using PostgreSQL. The basic SELECT statement, the use of SQL functions, and the basic table and view handling statements are introduced.

Exercises and examples are used throughout the course to give practical hands-on experience with the techniques covered.

Course Objectives

The course aims to provide the delegate with the knowledge to be able to use SQL to manipulate data held in a PostgreSQL database and to progress their SQL skills beyond the basics.

Who will the Course Benefit?

This is an ideal course for anyone who needs to use and understand the Structured Query Language (SQL) to query, report and update data in a PostgreSQL database.

Skills Gained

The delegate will learn and acquire skills as follows:

  • Creating SQL statements to query database tables
  • Using standard aggregate functions and related SELECT statement clauses
  • Joining Tables
  • Using basic subqueries and the set operators
  • Using numeric, character and date functions
  • Using conversion and other miscellaneous functions
  • Using complex subqueries
  • Creating and altering tables and views
  • Inserting, updating and deleting rows in database tables
  • Creating and listing indexes
  • Managing sequences

SQL for PostgreSQL Training Course

Course Introduction

  • Administration and Course Materials
  • Course Structure and Agenda
  • Delegate and Trainer Introductions

Session 1: RELATIONAL DATABASE CONCEPTS

  • What is an PostgreSQL Database
  • Relational Database Structures
  • Tables, Rows and Columns
  • Indexes, Primary Keys and Foreign Keys
  • Supported Datatypes
  • The Data Dictionary

Session 2: USING psql

  • What is psql
  • Getting Started
  • Entering and Executing SQL Statements
  • Editing SQL Statements
  • Creating, Editing and Executing SQL Files

Session 3: RETRIEVING DATA WITH THE SELECT STATEMENT

  • The SELECT Statement
  • The SELECT and FROM Clauses
  • Conditions and the WHERE Clause
  • Other Conditional Operators
  • Logical Operators
  • The ORDER BY Clause
  • Column Aliases
  • Arithmetic Expressions
  • Precedence of Operators

Session 4: AGGREGATE FUNCTIONS

  • Overview of Built In Aggregate Functions
  • The GROUP BY Clause
  • The HAVING Clause

Session 5: JOINING TABLES

  • Overview of Table Joins
  • Inner Joins
  • Table Aliases
  • Outer Joins
  • Self Joins
  • ANSI Standard Joins

Session 6: BASIC SUBQUERIES AND SET OPERATORS

  • Overview of Subqueries
  • Basic Subqueries
  • Set Operators
  • The Union, Intersect and Except Operators

SQL for PostgreSQL Training Course

Session 7: NUMERIC, CHARACTER AND DATE FUNCTIONS

  • Function Types
  • Numeric Functions
  • Character Functions
  • String Concatenation
  • Date Arithmetic and Date Functions

Session 8: CONVERSION AND MISCELLANEOUS FUNCTIONS

  • Conversion Functions
  • CASE Expressions
  • The COALESCE and NULLIF Functions

Session 9: COMPLEX SUBQUERIES

  • Subqueries Usage
  • In-Line Views
  • Subqueries with Joins
  • Multi Column Subqueries
  • Correlated Subqueries
  • Subquery Rules

SQL for PostgreSQL Training Course

Session 10: MANAGING DATA

  • Inserting Rows
  • Updating Rows
  • Updating Join and Upsert Rows
  • Deleting Rows
  • Transaction Control
  • Commit and Rollback
  • Savepoints
  • Commits and Constraints
  • Amending Data in pgAdmin 4
  • Insert data to Table from csv file
  • Export data from Table to csv file

Session 11: MANAGING TABLES

  • Creating Tables
  • Specifying Constraints
  • Altering Tables, Columns and Constraints
  • Dropping Tables, Columns and Constraints
  • Recovering Dropped Tables
  • Copying Tables

Session 12: MANAGING INDEXES AND VIEWS

  • Creating Indexes
  • Dropping Indexes
  • Listing Indexes
  • Creating and Using Views
  • Dropping Views
  • Listing Views

Session 13: MANAGING SEQUENCES

  • Create a Sequence
  • View Sequence Details
Notes:
  • Course technical content is subject to change without notice.
  • Course content is structured as sessions, this does not strictly map to course timings. Concepts, content and practicals often span sessions.

Requirements

There are no formal pre-requisites for the SQL for PostgreSQL course, although an understanding of databases and exposure to information technology in general would be useful. This knowledge can be gained by attendance on the Relational Databases & Data Modelling Overview course.

Course Reviews

Very informative, all questions answered and was broken down into the correct sized chunks to learn and absorb.

Neil - Associate Engineer - Utilities - July 2024

- March 2024

Tarn was fantastic. Very thorough teaching and all in a friendly and engaging manner. I had internet issues that caused me to miss quite a bit of the morning session on day 2 and Tarn offered to stay after the days training had finished to fill me in on what I missed. I really appreciated this and think it spoke volumes about the care and attention Tarn had for our training.

Keean - Apprentice Data Analyst - IT

Tarn was extremely good at explaining concepts, and was always patient in answering questions. A very good instructor.

Neil - tester - Government

Brilliant course Tarn done very very well considering it was all on Zoom. Course content was good and the system was good apart from it kicked me out once for apparently being on too long but it let me back in straight away.

Callum - Data Assistant

Fantastic training that was well paced with good detail. Overcame the barrier of remote teaching. Good online resources that worked well and the use of sql server in utilities focused well to learn the syntax.

Warren - Information Analyst

Public Scheduled Events

Classroom & Live Virtual Instructor-Led Training

Duration: 3 days

Price: £1,350.00 exc. VAT 


Start Date Options Spaces  
22 Jan 2025
StayAhead Virtual Courses available 
Spaces Book Now 
12 Feb 2025
StayAhead Virtual Courses available 
Spaces Book Now 
09 Apr 2025
StayAhead Virtual Courses available 
Spaces Book Now 
11 Jun 2025
StayAhead Virtual Courses available 
Spaces Book Now 
13 Aug 2025
StayAhead Virtual Courses available 
Spaces Book Now 
15 Oct 2025
StayAhead Virtual Courses available 
Spaces Book Now 
 

Live Virtual Classroom

 
Join live instructor-led classroom training from the comfort of your home or office.
All the convenience and benefits of the classroom experience without the hassle and costs of travel and accommodation.
 
 



Our Customers Include

 
EDF
Amazon
American Express
Aviva
QA
BAE
University of Cambridge
Barnardo's
Scottish Government
Bauer
Bloomberg
BP
HSBC
DVLA
GlaxoSmithKline
Government Campus
Capita
Tui
NHS
Ordnance Survey
Ministry of Defence
Zurich Insurance Group
trainline
Vodafone
 
 



Our Course Curriculum

 
 
 
+44 (0)20 7600 6116
Enquiries@StayAhead.com
Copyright © 2024 StayAhead Training Ltd
Cookies   /   Privacy Policy