Introduction to SQL Using PostgreSQL (SQL106)
This course provides a comprehensive introduction to SQL using PostgreSQL, one of the most advanced open-source relational database systems. Designed for beginners, data analysts, and anyone new to SQL, this course covers the essential SQL skills needed to query, manipulate, and manage data within a PostgreSQL environment.
The course begins with Relational Database Basics, where you'll explore the history of SQL, the fundamentals of relational databases, and the key features of PostgreSQL. This module sets the stage for understanding how SQL interacts with databases and introduces you to PostgreSQL, a powerful and widely used database system.
In Simple SELECTs, you'll learn the basics of querying data using the SELECT statement. This module covers selecting specific columns, sorting results, and using the WHERE clause to filter records based on various conditions. You’ll also practice running queries in pgAdmin, the popular management tool for PostgreSQL, allowing you to explore and interact with the database hands-on.
The Advanced SELECTs section dives deeper into SQL querying techniques. You'll learn to limit and offset results, create calculated fields, and use aggregate functions for grouping and summarizing data. This module also covers selecting distinct records, manipulating data with built-in functions for math and strings, and working with date and time data types, enhancing your ability to perform complex data retrieval and analysis.
In the Subqueries, Joins, and Unions module, you’ll explore powerful ways to combine and manipulate data across multiple tables. You’ll learn to write subqueries, use various join types, including outer joins, and merge datasets with unions. These skills are crucial for creating more sophisticated queries that can handle complex data relationships.
The Conditional Processing with CASE section teaches you how to use the CASE statement for conditional logic within your queries. This module allows you to add dynamic, decision-based processing to your SQL queries, making them more adaptable and capable of handling a wider range of data scenarios.
Next, in Inserting, Updating, and Deleting Records, you'll learn how to modify data in your tables. This module covers the INSERT, UPDATE, and DELETE statements, providing you with the skills to manage data efficiently and maintain data integrity within your database.
The course concludes with Creating Tables, where you’ll learn to create databases and tables using pgAdmin and SQL commands. You’ll explore table creation options, including how to use CASCADE and RESTRICT constraints to manage table dependencies. This module equips you with the foundational skills to design and implement your own database structures.
By the end of this course, you will have developed a strong understanding of SQL fundamentals using PostgreSQL. You’ll be equipped with the skills needed to write effective queries, manage data, and create databases, making you well-prepared to work with SQL in a PostgreSQL environment.
- History of SQL and relational databases.
- Structure of relational databases.
- PostgreSQL.
- Our database.
- SQL comments.
- SQL syntax.
- Selecting all rows from a table.
- Sorting record sets.
- Filtering record sets.
- Retrieving a portion of the rows generated by a query.
- Retrieving calculated values.
- Aggregate functions and grouping.
- SQL's data manipulation functions.
- Subqueries.
- Joins.
- Unions.
- The CASE statement.
- Inserting new records.
- Updating records.
- Deleting records.
- Creating a database with pgAdmin.
- Creating tables.
Private classes are delivered for groups at your offices or a location of your choice.
Learn at your own pace with 24/7 access to an On-Demand course.
- Relational Database Basics
- Brief History of SQL
- Relational Databases
- PostgreSQL
- Simple SELECTs
- Introduction to the Jokes Database
- Some Basics
- SELECTing All Columns in All Rows
- Running Queries in pgAdmin
- Exercise: Exploring the Tables
- SELECTing Specific Columns
- Exercise: SELECTing Specific Columns
- Sorting Records
- Exercise: Sorting Results
- The WHERE Clause and Logical Operator Symbols
- Exercise: Using the WHERE Clause to Check for Equality or Inequality
- Checking for Greater or Less Than
- Exercise: Using WHERE to Check for Greater or Less Than
- Checking for NULL
- Exercise: Checking for NULL
- WHERE and ORDER BY
- Exercise: Using WHERE and ORDER BY Together
- Checking Multiple Conditions with Boolean Operators
- Exercise: Writing SELECTs with Multiple Conditions
- The WHERE Clause and Logical Operator Keywords
- Exercise: More SELECTs with WHERE
- Advanced SELECTs
- LIMIT and OFFSET
- Calculated Fields
- Exercise: Calculating Fields
- Aggregate Functions and Grouping
- Exercise: Working with Aggregate Functions
- Selecting Distinct Records
- Built-in Data Manipulation Functions for Math and Strings
- Exercise: Data Manipulation Functions for Math and Strings
- Date/Time Types, Operators, and Functions
- Exercise: Date/Time Manipulation
- Subqueries, Joins and Unions
- Subqueries
- Exercise: Subqueries
- Joins
- Exercise: Using Joins
- Outer Joins
- Exercise: Using Outer Joins
- Unions
- Exercise: Working with Unions
- Conditional Processing with CASE
- Using CASE
- Exercise: Working with CASE
- Inserting, Updating and Deleting Records
- INSERT
- Exercise: Inserting Records
- UPDATE
- DELETE
- Exercise: Updating and Deleting Records
- Creating Tables
- Creating a Database with pgAdmin
- How to Create Tables
- Exercise: Creating Tables
- CASCADE and RESTRICT
- Exercise: Using CASCADE
Each student will receive a comprehensive set of materials, including course notes and all the class examples.
Live Private Class
- Private Class for your Team
- Live training
- Online or On-location
- Customizable
- Expert Instructors
Self-Paced Course
- On Demand 24/7
- Readings
- Presentations
- Exercises
- Quizzes
- Full Year of Access
- Learn more