PostgreSQL
Last updated
Was this helpful?
Last updated
Was this helpful?
: show you how to query data from a single table.
: learn how to assign temporary names to columns or expressions in a query.
: guide you on how to sort the result set returned from a query.
: provide you a clause that removes duplicate rows in the result set.
: filter rows based on a specified condition.
: get a subset of rows generated by a query.
: limit the number of rows returned by a query.
: select data that matches any value in a list of values.
: select data that is a range of values.
: filter data based on pattern matching.
: check if a value is null or not.
In this section, you will learn how to insert data into a table with the INSERT
statement, modify existing data with the UPDATE
statement, and remove data with the DELETE
statement. Besides, you learn how to use the upsert statement to merge data.
You will learn how to import and export PostgreSQL data from and to CSV file format using the copy command.
In this section, you will start exploring the PostgreSQL data types and showing you how to create new tables and modify the structure of the existing tables.
END OF THE LECTURE
: show you a brief overview of joins in PostgreSQL.
: describes how to use table aliases in the query.
: select rows from one table that has the corresponding rows in other tables.
: select rows from one table that may or may not have the corresponding rows in other tables.
: join a table to itself by comparing a table to itself.
: use the full join to find a row in a table that does not have a matching row in another table.
: produce a Cartesian product of the rows in two or more tables.
: join two or more tables using implicit join condition based on the common column names in the joined tables.
: divide rows into groups and applies an aggregate function on each.
: apply conditions to groups.
: combine result sets of multiple queries into a single result set.
: combine the result sets of two or more queries and returns a single result set that has the rows appear in both result sets.
: return the rows in the first query that does not appear in the output of the second query.
: generate multiple grouping sets in reporting.
: define multiple grouping sets that include all possible combinations of dimensions.
: generate reports that contain totals and subtotals.
: write a query nested inside another query.
: retrieve data by comparing a value with a set of values returned by a subquery.
: query data by comparing a value with a list of values returned by a subquery.
: check for the existence of rows returned by a subquery.
: introduce you to PostgreSQL common table expressions or CTEs.
:discuss the recursive query and learn how to apply it in various contexts.
: guide you on how to insert single row into a table.
: show you how to insert multiple rows into a table.
: update existing data in a table.
: update values in a table based on values in another table.
: delete data in a table.
: insert or update data if the new row already exists in the table.
: show you how to handle transactions in PostgreSQL using BEGIN, COMMIT, and ROLLBACK statements.
: show you how to import CSV file into a table.
: show you how to export tables to a CSV file.
: cover the most commonly used PostgreSQL data types.
: guide you on how to create a new table in the database.
& : shows you how to create a new table from the result set of a query.
column with SERIAL uses SERIAL to add an auto-increment column to a table.
: introduce you to sequences and describe how to use a sequence to generate a sequence of numbers.
: show you how to use the identity column.
: modify the structure of an existing table.
: change the name of the table to a new one.
: show you how to use add one or more columns to an existing table.
: demonstrate how to drop a column of a table.
: show you how to change the data of a column.
: illustrate how to rename one or more columns of a table.
: remove an existing table and all of its dependent objects.
: remove all data in a large table quickly and efficiently.
: show you how to use the temporary table.
: show you how to copy a table to a new one.
:
show you how to form conditional queries with CASE
expression.
:
return the first non-null argument. You can use it to substitute NULL
by a default value.
:
return NULL
if the first argument equals the second one.
:
convert from one data type into another e.g., from a string into an integer, from a string into a date.
: show you the most common psql commands that help you interact with psql faster and more effectively.
: describe how to compare data in two tables in a database.
: show you various ways to delete duplicate rows from a table.
: illustrate how to generate a random number in a specific range.
: guide you on how to use the EXPLAIN
statement to return the execution plan of a query.
: compare PostgreSQL with MySQL in terms of functionalities.