SQL for PostgreSQL
 
 

SQL for PostgreSQL

Course Code: PSQL

Duration: 3 days

S6

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.

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 SQL parameters
  • Using complex subqueries
  • Creating and altering tables and views
  • Inserting, updating and deleting rows in database tables
  • Creating and listing indexes
  • Managing sequences

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.

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.

Requirements

There are no formal pre-requisites for this SQL for PostgreSQL course, although an understanding of relational databases and exposure to information technology in general would be useful.

Follow-On Courses

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.

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: USING pgAdmin 4

  • What is pgAdmin 4
  • Starting pgAdmin 4
  • Configure a Connection
  • Navigation Tabs
  • Use the query tool

Session 4: 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 5: AGGREGATE FUNCTIONS

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

Session 6: JOINING TABLES

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

Session 7: BASIC SUBQUERIES AND SET OPERATORS

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

SQL for PostgreSQL Training Course

Session 8: NUMERIC, CHARACTER AND DATE FUNCTIONS

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

Session 9: CONVERSION AND MISCELLANEOUS FUNCTIONS

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

Session 10: COMPLEX SUBQUERIES

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

SQL for PostgreSQL Training Course

Session 11: 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 12: MANAGING TABLES

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

Session 13: MANAGING INDEXES AND VIEWS

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

Session 15: MANAGING SEQUENCES

  • Create a Sequence
  • View Sequence Details
 

SQL for PostgreSQL

Duration: 3 days

RRP: £1,150.00 exc. VAT 


Upcoming Scheduled Events
Next 6 months

London
Start Date   Spaces Book
25 Feb 2019   Filling StayAhead - Course Running Book
 
15 Apr 2019   Spaces StayAhead - Course Running Book
 
22 May 2019   Spaces StayAhead - Course Running Book
 
08 Jul 2019   Spaces StayAhead - Course Running Book
 
Virtual Events StayAhead Virtual Courses available You can attend your training virtually using the London dates shown above. Please contact us for more details on our Virtual training options or to discuss specific Virtual course dates to meet your requirements.
 

Course Reviews

Good, low pressure, learning environment. Covered all topics effectively and with an appropriate level of detail. Lecturer explained things clearly and was an all round nice guy. Documentation provided was a great bonus. Perfect for continuing to develop skills outside of this course.

Alex - Communications - December 2018


 
 
 
        Home             Let Us Call You
 

 

Course Deliveries

Public Scheduled and Closed
Virtual
UK and Overseas

OUG

Oracle User Group - Membership Benefits

OUG

Certification

Our independent Oracle, Solaris & Red Hat Linux curriculums helps prepare delegates for official certification.

StayAhead
Flexibility

Cannot see a sutiable date?
Please call us and we will try an accommodateyour needs!




Our Course Curriculum

 
 
 
 
 



Our Ratings

Instructor
Quality
 

97.48%

Course
Practical
 

92.63%

Overall
Courseware
 

94.44%

Overall
Course
 

96.46%

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