Skip to content

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.

Notifications You must be signed in to change notification settings

ravirch/PostgreSQL-SQL-Guide

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

    • 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

    • 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
  3. Advanced Filtering and Grouping

    • 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
  4. Mastering Joins and Subqueries

    • 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
  5. Practical Application and Table Creation

    • Creating Tables and Specifying Constraints
    • Column-Level Constraints (PRIMARY KEY, UNIQUE, NOT NULL)
    • Table-Level Constraints (FOREIGN KEY, CHECK)
  6. Data Modification Commands

  7. Real-World Case Studies

  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.

About

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.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published