{"id":19874317,"url":"https://github.com/forhadulislam/learn-advanced-sql-with-examples","last_synced_at":"2026-06-10T11:31:57.602Z","repository":{"id":148559829,"uuid":"258344400","full_name":"forhadulislam/learn-advanced-sql-with-examples","owner":"forhadulislam","description":null,"archived":false,"fork":false,"pushed_at":"2020-05-03T21:55:22.000Z","size":5272,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-01T01:26:57.953Z","etag":null,"topics":["advanced-sql","postgres","postgresql","postgresql-database","sql"],"latest_commit_sha":null,"homepage":null,"language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/forhadulislam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-23T22:21:11.000Z","updated_at":"2022-12-31T19:38:42.000Z","dependencies_parsed_at":"2023-05-20T13:15:12.089Z","dependency_job_id":null,"html_url":"https://github.com/forhadulislam/learn-advanced-sql-with-examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/forhadulislam/learn-advanced-sql-with-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forhadulislam%2Flearn-advanced-sql-with-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forhadulislam%2Flearn-advanced-sql-with-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forhadulislam%2Flearn-advanced-sql-with-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forhadulislam%2Flearn-advanced-sql-with-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/forhadulislam","download_url":"https://codeload.github.com/forhadulislam/learn-advanced-sql-with-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/forhadulislam%2Flearn-advanced-sql-with-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34151274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["advanced-sql","postgres","postgresql","postgresql-database","sql"],"created_at":"2024-11-12T16:22:52.053Z","updated_at":"2026-06-10T11:31:57.585Z","avatar_url":"https://github.com/forhadulislam.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Learn Advanced SQL with examples\n\nLearn Advanced SQL with examples. This repo contains example codes for for people who\nalready have some knowledge on SQL (Select, Insert, Update, Delete). \nThe examples provide a better understanding of using complicated SQL commands. \nHere are the list of examples:\n\n    1. Subquery\n    2. Outer Join\n    3. Left Join\n    4. Inner Join\n    5. Full outer joins, coalesce\n    6. Cross apply\n    7. Outer apply\n    8. Intersect\n    10. Except and pivot\n    11. Unions\n    12. Recursive/hierarchical queries \n    13. Partitioning\n    14. Transaction\n    15. Indexes\n    16. Stored Procedures\n    17. Functions\n    **. Query Refactoring Techniques\n\n### Sample Dataset\n\nNorthwind database is the sample database used here for the examples. Originally created by Microsoft, it is used as a standard dataset for many tutorials on database for decades.\n\nThe dataset contains the following:\n\n    * Products: Product information\n    * Suppliers: Suppliers and vendors of Northwind\n    * Customers: Customers who buy products from Northwind\n    * Employees: Employee details of Northwind traders\n    * Shippers: The details of the shippers who ship the products from the traders to the end-customers\n    * Orders and Order_Details: Sales Order transactions taking place between the customers \u0026 the company\n\n### How to run the examples\n\nYou can run the example files if you have Docker and Docker compose installed in your system. Here is an example of doing that - \n\n    docker-compose up\n    docker exec -i postgres_db psql -U postgres northwind \u003c ./databases/northwind.sql\n\n\nTested on: pgSQL version 12.2\n\n### How can the examples help\n\nThe best way to utilize the examples is to clone the repo and play with the SQL commands in your local environment. \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforhadulislam%2Flearn-advanced-sql-with-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fforhadulislam%2Flearn-advanced-sql-with-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fforhadulislam%2Flearn-advanced-sql-with-examples/lists"}