
Explore the basics of SQL with PostgreSQL, covering select and filter, joins, creating and inserting with constraints, group by, subqueries, views, transactions, and indexing.
Learn sql, the structured query language for querying relational databases using Postgres, an open source rdbms, and explore ddl, dml, dql, dcl, and tcl commands for data retrieval and modification.
Install Postgres on Windows ten environment by downloading and running the 14.5 installer, keeping defaults, and noting the Postgres superuser password; then open PG Admin and import databases.
We learn how to select some or all columns from a single table. Learn about aliases for column names.
We see some more uses of the SELECT keyword and use aliases to change column names using the AS keyword.
Order query results with the order by clause in PostgreSQL using ascending or descending order, including multiple columns. Learn the execution order: from, select, order by, with asc optional.
Practice basic sql queries in PostgreSQL by selecting film titles and attributes, and sorting by rental rate and replacement cost in descending order, film length descending, and alphabetical title order.
Learn to use the distinct clause to remove duplicates and retrieve unique countries and cities from the address table, including country-city combinations, with proper ordering.
Use the distinct clause to count unique customers, identify distinct rental rates with minimum and maximum values, and reveal MPAA ratings from the DVD rental database.
Filter rows with the where clause using between, like, and ilike operators; use percent and underscore wildcards, with not and is null handling, and apply regex patterns.
Explain what an INNER JOIN is and why we need it and how it works.
A practical example of an INNER JOIN.
We look at an example where we need to join more than two tables.
Explains what are outer joins, why we need them and examples.
Explain what a self join is and two examples where we can use them.
In this video we look at some basic datatypes in SQL such as VARCHAR, CHAR, INT and REAL (and their variations).
Explore basic crud operations in PostgreSQL, creating databases and tables, inserting, updating, deleting, and reading data with examples using pgAdmin and sql syntax.
Explore manipulating entire columns in Postgres by using a script to add, rename, cast, and drop columns in the people table, and understand double-dash comments and table recreation.
Explore column and table constraints, focusing on the primary key as a unique, not-null identifier and how the serial data type auto-increments keys in PostgreSQL.
Explore foreign key constraints that link scores to students (and teachers), enforce referential integrity, prevent invalid insertions or deletions, and support multi-foreign-key relationships across related tables.
Explore the date data type in Postgres, its storage as yyyy-mm-dd, and formatting with to_char, current_date, and now, plus age, extract, and interval for date calculations.
Discover the Postgres time data type, storing 24-hour times with optional time zones and fractional seconds, performing arithmetic and extraction, and comparing current time, local time, and zones.
Explore the timestamp and timestamp with time zone data types, and learn how time zones affect values in Postgres, plus using interval for readable date arithmetic.
We group our rows into groups based on distinct values of a column and get data about the groups.
Since aggregate calculations are very important, we take a deeper look into when exactly these aggregates are calculated.
We group our rows using more than one column and data that is not immediately available in the table as a simple column.
We look at how we can combine multiple types of grouping operations into a single SQL query and how we read the result set.
Here we look at ways to combine multiple tables with compatible datatypes using SET type operations: UNION, INTERSECT and EXCEPT.
Here we look at ways that we can use a sub-query which is essentially feeding the result set of one query to another.
We use the CASE statement along with WHEN, THEN to produce results based on the values of a column.
We explore CTEs and apply them to two problems.
We create virtual tables called VIEWS and show how we can use it for ease of use and some security feature.
We discuss MATERIALIZED VIEWS which are nothing but VIEWS with actual data backing them. They can be used as a regular table and are useful for storing results are requested frequently.
In this video, we introduce TRANSACTIONS and explore the need and how to implement them.
We look at implicit and explicit transactions and explore reasons to use explicit transactions.
Structured Query Language (SQL) is THE language of relational databases.
Every software developer and data analytics engineer WILL interact with a relational database at some point in their career and SQL is the language of choice when talking to these databases.
Employers desire SQL language skills and it is a great resume enhancer if you know anything beyond just the basics.
In this course, you will learn the basics of SQL and some fairly advanced topics that will make you a valuable addition to any software team.
Most of the course (90%) will be spent on demos and problem solving rather than power point presentations and there are multiple quizzes, assignments and projects.
Finally, we will build a 3-tier web application using a PostgreSQL backend database which will teach you the advanced skills required to perform such a task.
If you have ever felt that you would like to learn more about SQL but are not sure about what course to take, Basics of SQL using PostgreSQL is an excellent course to try out.
There is no risk. This course has a 30-day money back guaranteed by Udemy.
I wish you the best of luck and hope you will have as much fun learning about SQL as I had teaching this course.