{"id":29180244,"url":"https://github.com/3n0ugh/postgresql-notes","last_synced_at":"2025-10-06T03:53:20.783Z","repository":{"id":138571408,"uuid":"392749629","full_name":"3n0ugh/PostgreSQL-Notes","owner":"3n0ugh","description":"PostgreSQL and SQL Notes.","archived":false,"fork":false,"pushed_at":"2022-12-15T10:47:19.000Z","size":127,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-01T19:08:44.659Z","etag":null,"topics":["postgresql","sql"],"latest_commit_sha":null,"homepage":"","language":null,"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/3n0ugh.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,"zenodo":null}},"created_at":"2021-08-04T16:02:04.000Z","updated_at":"2024-01-16T19:53:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"8d2a0111-a94c-4ce0-a976-36d9a855d4bb","html_url":"https://github.com/3n0ugh/PostgreSQL-Notes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/3n0ugh/PostgreSQL-Notes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3n0ugh%2FPostgreSQL-Notes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3n0ugh%2FPostgreSQL-Notes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3n0ugh%2FPostgreSQL-Notes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3n0ugh%2FPostgreSQL-Notes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3n0ugh","download_url":"https://codeload.github.com/3n0ugh/PostgreSQL-Notes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3n0ugh%2FPostgreSQL-Notes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278556190,"owners_count":26006081,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"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":["postgresql","sql"],"created_at":"2025-07-01T19:08:20.985Z","updated_at":"2025-10-06T03:53:20.776Z","avatar_url":"https://github.com/3n0ugh.png","language":null,"readme":"# PostgreSQL-Notes\n\n\u003cimg src=\"https://www.mshowto.org/images/articles/2020/05/1_PY24xlr4TpOkXW04HUoqrQ.jpeg\"\u003e\n\n## Introduction\n\nThis repo was created to share self-taken PostgreSQL notes from the tutorial site (https://www.postgresqltutorial.com/).\n\nI hope it will be useful for you.\n\n## Instruction\n\n1. Clone the repository:\n  ```bash\n     git clone https://github.com/3n0ugh/PostgreSQL-Notes.git\n  ```\n2. Open the cloned repository in the code editor.\n\n  - If you are using Visual Studio Code as code editor, try `Ctrl + k Ctrl + 0 ` or `Cmd + k Cmd + 0` shortcut to collapse all file.\n \n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/69458980/128481392-0981a1df-ac7e-469f-be93-262a26422be3.gif\" width=\"700\" heigth=\"400\" /\u003e\n\u003c/p\u003e\n\n3. Importing The Sample Database:\n   - Download the dvdrental.zip file from the following website:\n        https://www.postgresqltutorial.com/wp-content/uploads/2019/05/dvdrental.zip\n       \n   - Unpack the zip file.\n   - Open the terminal, then go to the directory where you unpack the zip file.\n   - Execute the following instructions:\n      - First enter the PostgreSQL terminal. \n      ```bash\n        psql -U user_name\n      ```\n      - Then create a database named dvdrental.\n      ```sql  \n        CREATE DATABASE dvdrental;\n      ```\n      - And then exit from the PostgreSQL terminal using \"\\q\" command.\n      ```sql\n        \\q\n      ```\n      - After that, use the pg_restore tool to load data into the dvdrental database:\n      ```bash\n        pg_restore -U username -d dvdrental dvdrental.tar\n      ```\n       \n## Table Of Content For Notes\n\n\n* ***[QUERYING DATA](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/1-querying-data.md)***\n* ***[FILTERING DATA](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/2-filtering-data.md)***\n* ***[JOINING MULTIPLE TABLES](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/3-joining-multiple-tables.md)***\n* ***[GROUPING DATA](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/4-grouping-data.md)***\n* ***[SET OPERATIONS](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/5-set-operations.md)***\n* ***[GROUPING SETS, CUBE AND ROLLUP](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/6-grouping-sets-cube-and-rollup.md)***\n* ***[SUBQUERY](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/7-subquery.md)***\n* ***[COMMON TABLE EXPRESSIONS](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/8-common-table-expressions.md)***\n* ***[MODIFYING DATA](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/9-modifiying-data.md)***\n* ***[TRANSACTIONS](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/10-transactions.md)***\n* ***[IMPORT \u0026 EXPORT DATA (FROM/TO CSV)](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/11-import-export-data.md)***\n* ***[MANAGING TABLES](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/12-managing-tables.md)***\n* ***[UNDERSTANDING POSTGRESQL CONSTRAINTS](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/13-understanding-psql-constraints.md)***\n* ***[POSTGRESQL DATA TYPES IN DEPTH](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/14-psql-data-types-in-depth.md)***\n* ***[CONDITIONAL EXPRESSIONS AND OPERATORS](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/15-conditional-expressions-and-operators.md)***\n* ***[PSQL COMMANDS](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/16-psql-commands.md)***\n* ***[POSTGRESQL RECIPES](https://github.com/3n0ugh/PostgreSQL-Notes/blob/main/part-by-part/17-psql-recipes.md)***\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3n0ugh%2Fpostgresql-notes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F3n0ugh%2Fpostgresql-notes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F3n0ugh%2Fpostgresql-notes/lists"}