
Welcome to the course!
I've created this lecture to contains;
Important sample data files
All files are attached to the lecture
In this video, we will install the postgreSQL server on a Mac.
How to install PostgreSQL on Windows
We will configure the pgAdmin 4 client interface to connect to our PostgreSQL 12 server installed earlier.
We will be creating a new user login to access our PostgreSQL database, and creating training tables.
We will be creating our learning database on our new server.
A quick introduction on how we will be running queries within the pgAdmin tool
We will be working on uploading and installing the sample data files to our PostgreSQL server.
Install Human Resources (hr) database
In this video, we will be installing some sample stock market data to our tables.
Create a Northwind database in PostgreSQL, download the Northwind.sql file, and run it to populate 14 tables for hands-on query exercises.
How to drop a database
Movie Database Structure
We will create an actor table which will contains actor related information.
We will create an directors table which will contains director related information.
We will create a movies table and store various movies related information like movie name, release_date and more.
In this video, we will show you how to create a movies_revenues table which will contains movies revenues.
We will show you how to create a junction table which will connect movies and actors table together by means of foreign keys.
Install sample data for 'movies' database
We will create a sample Database called "mydata" and then we will create tables and data inside as per later videos.
We will use the pgAdmin Graphical User Interface (GUI) tool to create and modify a table.
We will use the pgAdmin Graphical User Interface (GUI) tool to view existing table structure like columns, constraints etc., and create a column to an existing table.
We will use the pgAdmin Graphical User Interface (GUI) tool to view a column properties, rename it, and change its data type.
How to use pgAdmin or DROP TABLE command to delete a table from a database.
How to insert data into a table.
How to insert multiple records in one single INSERT statement.
How to insert a data if this contains a quote e.g. we want to insert 'users's log' as text in our table.
How to use RETURNING clause in INSERT statement to get information of added row.
How to update data in a table
How to updating a row and returning the updated row
How to update all records in a table.
How to delete a row based on a condition or delete all data from a table
How to select all data from a table
How to use SELECT statement to get selected columns from a table.
How we can use column aliases to make our sql commands results output more presentable and readable for all users.
We will demonstrate how to use SELECT statement with expressions. i.e. use SELECT but not on a table?
How to use ORDER BY to list records in a table
How to use ORDER BY with alias column name
How to use ORDER BY to sort rows by expressions
How to use either column name or column number for ORDER BY clause.
How to use ORDER BY when you have NULL data in a table
How to use DISTINCT function to get unique or distinct value of a table.
We will look into comparison, Logical, and Arithmetic operators
How to use WITH with AND operator
How to use WITH along with OR operator
How to use AND, OR operators together, and how with/without parenthesis will change the query result output.
What is allowed before and after WHERE clause
How SQL process AND, OR operators in terms of executions, and what role parenthesis play in query output.
Can we use column aliases with WHERE?
How SQL does the order of execution of WHERE, SELECT and ORDER BY clause
Explore PostgreSQL logical operators, including =, >, <, >=, <=, !=, and text and date handling. See practical examples with movie length, release date, and language, plus ordering results.
How to use LIMIT and OFFSET to slice and dice to limit output records
How to use IN and NOT IN with WHERE clause to filter data and more.
How to use BETWEEN and NOT BETWEEN clause with WHERE statement
Learn how to use like and ilike for pattern matching in PostgreSQL, with % and _ wildcards, case sensitivity differences, and practical examples in where clauses.
How to use IS NULL and IS NOT NULL to filter missing values and more.
Concatenation techniques
How to use ||, CONCAT and CONCAT_WS to concatenate strings and table columns
Boolean data type
Characters data types
Numeric data types
Decimals data types
Selecting Numbers data types
Explore date and time data types in PostgreSQL, including date, time, timestamp, timestamp with time zone, and interval, and understand how they store values for time series and global data.
DATE
TIME
TIMESTAMP and TIMESTAMPTZ
UUID data type
hstore data type
JSON data type
Network Address data types
Creating sample database, adding columns
Create a PostgreSQL web links table, enforce a unique constraint on link URL, and enforce allowed values on is enable with a check constraint.
Data type conversions
Using CAST for data conversions
Using CAST for data conversions
Table data conversion
Explore the Postgres to_number function to convert strings into numeric values using flexible format patterns, including decimal points, grouping, currency symbols, and locale-based formatting.
Use to_date to convert a string to a date in PostgreSQL by specifying a format. It maps year, month, and day tokens and outputs a date, not a timestamp.
Learn to_timestamp in PostgreSQL to convert strings to timestamp with time zone using a format string; cover tokens for year, month, day, hour, minute, second, and timezone, plus error handling.
Subqueries? Yes, Recursive CTEs? Yes, Server programming with SQL and PL/pgSQL, Stored Procedures? Yes, Window Functions? Yes indeed and much more...
I've design this course from step-by-step move from basic to advanced topics. Here is a partial list of some of the topics that are covered in 50+ sections and 60+ hours of this course:
Apply powerful SQL commands to store, update and retrieve information
Step-by-step walkthrough to perform simple to complex SQL queries
How to create a database from the scratch, Creating and modifying tables
Using UPSERT for INSERT and UPDATE at the same time
Query data with ORDER BY, Logical operators, and filters
Understand PostgreSQL various data types with examples
Data type conversions with CAST, and conversion functions
Create your own user-defined data types
Explore table and column constraints, create multiple composite constraints, see data integrity operations
Create your own custom sequences
Parsing data with queries using string functions
Aggregate data with aggregate functions
Date/Time data types, Intervals, and handling timezones
Grouping Data with GROUP BY, conditional filter with HAVING
Joining Multiple Tables with various joins techniques
Combining Queries together with UNION, INTERSECT, and EXCEPT
Understand and create PostgreSQL Schemas, ownership, security privileges
Constructing arrays and ranges, query array data with conditional filters
Storing data with JSONB objects and Indexing
Query performance optimization with indexes, understanding indexes nodes and outputs
Create and update regular and materialize views
Simple to advances step-by-step Subqueries
Creating Common Table Expressions (CTEs), and recursive CTEs queries
Making data into group sets
Simple to advanced Windows Functions
Using regular expressions for text patterns
Powerful text searches in PostgreSQL
Create and exploring table partitioning techniques
Server programming with SQL and PL/pqSQL
Creating Stores Procedures
Extending PostgreSQL echosystem with custom indexes, and aggregate functions
Creating, and executing Triggers
Using Cursors
pqsql Utility Commands
Creating Crosstab reports
Making our database for storing global language data - Internationalization
Running queries with PostgreSQL transactions
Crating, and Managing PostgreSQL Security
All about PostgreSQL internals on how data gets stored and much more
Running hundreds of queries on sample databases like HR, Northwind, Stock Markets, Word Trades database
This comprehensive course will teach you everything about PostgreSQL to use in your next big project!
Master the PostgreSQL database, and see how to apply it with real world database and queries. Sign up today and master PostgreSQL!