An open API service indexing awesome lists of open source software.

https://github.com/ravirch/postgresql-sql-guide

This repository is a comprehensive PostgreSQL SQL Guide, covering essential topics from foundational SQL queries to advanced concepts like joins, subqueries, and data manipulation commands.
https://github.com/ravirch/postgresql-sql-guide

postgresql psql sql

Last synced: 4 months ago
JSON representation

This repository is a comprehensive PostgreSQL SQL Guide, covering essential topics from foundational SQL queries to advanced concepts like joins, subqueries, and data manipulation commands.

Awesome Lists containing this project

README

          

# **PostgreSQL SQL Guide**

This repository serves as a structured guide to mastering SQL using PostgreSQL. It covers foundational SQL concepts, advanced query techniques, and practical exercises to help you become proficient in SQL through step-by-step learning.

## **Table of Contents**

1. **[Introduction to Databases and PostgreSQL](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Notes/Introduction%20to%20Databases%20and%20PostgreSQL.md)**
- What is a Database?
- Understanding Relational Database Management Systems (RDBMS)
- Overview of PostgreSQL and Its Features
- Setting Up PostgreSQL for Practice

2. **[Foundation of SQL Queries](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Notes/Foundation%20of%20SQL%20Queries.md)**
- Introduction to SQL and its Applications
- Retrieving Data with the SELECT Statement
- Filtering Rows with WHERE Clause
- Sorting Results with ORDER BY
- Introduction to Data Types in SQL
- Basic Operators in SQL
- [Read more examples here](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Examples/Examples%20Foundation%20of%20SQL%20Queries.md)

3. **[Advanced Filtering and Grouping](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Notes/Advanced%20Filtering%20and%20Grouping.md)**
- Utilizing the IN Operator
- Understanding the NOT IN Operator
- Introduction to LIKE Operator for Pattern Matching
- Handling NULLs in SQL Queries
- Grouping and Aggregating Data with GROUP BY
- Filtering Groups with HAVING Clause
- [Read more examples here](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Examples/Examples%20Advanced%20Filtering%20and%20Grouping.md)

4. **[Mastering Joins and Subqueries](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Notes/Mastering%20Joins%20and%20Subqueries.md)**
- Understanding JOINs in SQL
- Performing Inner Joins, Outer Joins, and Cross Joins
- Self Joins for Advanced Data Analysis
- Using UNION and UNION ALL for Merging Results
- Working with Subqueries
- [Read more examples here](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Examples/Examples%20Mastering%20Joins%20and%20Subqueries.md)

5. **[Practical Application and Table Creation](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Notes/Practical%20Application%20and%20Table%20Creation.md)**
- Creating Tables and Specifying Constraints
- Column-Level Constraints (`PRIMARY KEY`, `UNIQUE`, `NOT NULL`)
- Table-Level Constraints (`FOREIGN KEY`, `CHECK`)

6. **[Data Modification Commands](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Notes/Data%20Modification%20Commands.md)**
- Inserting Data into Tables
- Updating Existing Records
- Deleting Records from Tables
- [Read more examples here](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Examples/Examples%20Data%20Modification%20Commands.md)

7. **Real-World Case Studies**
- Case Study 1: [Sales Analysis with SQL](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Case%20Studies/Sales%20Analysis%20with%20SQL.md)
- Case Study 2: [Customer Segmentation with SQL](https://github.com/ravirch/PostgreSQL-SQL-Guide/blob/main/Case%20Studies/Customer%20Segmentation%20with%20SQL.md)

8. **Self Practice**
- Case Study: Employee Management and Reporting: Read the solved case studies from section 7 and apply your analytical skills to create similar case study on Employee managemenet & reporting.