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.
- Host: GitHub
- URL: https://github.com/ravirch/postgresql-sql-guide
- Owner: ravirch
- Created: 2024-05-09T06:17:13.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-02T05:04:30.000Z (about 1 year ago)
- Last Synced: 2025-05-27T01:44:21.120Z (5 months ago)
- Topics: postgresql, psql, sql
- Homepage:
- Size: 874 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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 Practice2. **[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.