🐘PostgreSQL

circle-info

IMPORTANT NOTE: We will continue the second week lessons based on the information on https://www.postgresqltutorial.com/arrow-up-right. You can reach detailed explanations of each subject from the relevant links below. In our physical lesson, we will do exercises on the sample database used here. For this reason, it is important that we come to the lesson with the sample database file running on our computers from the link https://www.postgresqltutorial.com/load-postgresql-sample-database/arrow-up-right. The name of the sample database file is dvdrental. We will do most of the SQL query exercises from PostgreSQL 14 version and PgAdmin 4 interface.

Section 1. Querying Data

Section 2. Filtering Data

Section 3. Joining Multiple Tables

Section 4. Grouping Data

Section 5. Set Operations

  • Unionarrow-up-right : combine result sets of multiple queries into a single result set.

  • Intersectarrow-up-right : combine the result sets of two or more queries and returns a single result set that has the rows appear in both result sets.

  • Exceptarrow-up-right : return the rows in the first query that does not appear in the output of the second query.

Section 6. Grouping sets, Cube, and Rollup

Section 7. Subquery

Section 8. Common Table Expressions

Section 9. Modifying Data

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.

Section 10. Transactions

Section 11. Import & Export Data

You will learn how to import and export PostgreSQL data from and to CSV file format using the copy command.

Section 12. Managing Tables

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.

Section 15. Conditional Expressions & Operators

  • CASEarrow-up-right : show you how to form conditional queries with CASE expression.

  • COALESCEarrow-up-right : return the first non-null argument. You can use it to substitute NULL by a default value.

  • NULLIFarrow-up-right : return NULL if the first argument equals the second one.

  • CASTarrow-up-right : convert from one data type into another e.g., from a string into an integer, from a string into a date.

Section 16. PostgreSQL Utilities

Section 17. PostgreSQL Recipes

END OF THE LECTURE

Last updated

Was this helpful?