{"id":15104882,"url":"https://github.com/pythoninthegrass/sql_zero_to_hero","last_synced_at":"2025-08-01T07:13:31.182Z","repository":{"id":254022958,"uuid":"845249441","full_name":"pythoninthegrass/sql_zero_to_hero","owner":"pythoninthegrass","description":"The Complete SQL Bootcamp: Go from Zero to Hero @ Udemy","archived":false,"fork":false,"pushed_at":"2025-02-07T23:09:14.000Z","size":3975,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T08:35:01.446Z","etag":null,"topics":["docker","postgres","python","sql"],"latest_commit_sha":null,"homepage":"https://www.udemy.com/course/the-complete-sql-bootcamp/","language":"HTML","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/pythoninthegrass.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":"2024-08-20T22:10:55.000Z","updated_at":"2024-08-20T22:30:00.000Z","dependencies_parsed_at":"2024-08-21T00:12:26.123Z","dependency_job_id":"4ecedfd9-0a2b-4277-9d03-100adfb95455","html_url":"https://github.com/pythoninthegrass/sql_zero_to_hero","commit_stats":null,"previous_names":["pythoninthegrass/sql_zero_to_hero"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fsql_zero_to_hero","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fsql_zero_to_hero/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fsql_zero_to_hero/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pythoninthegrass%2Fsql_zero_to_hero/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pythoninthegrass","download_url":"https://codeload.github.com/pythoninthegrass/sql_zero_to_hero/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247339132,"owners_count":20923009,"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","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":["docker","postgres","python","sql"],"created_at":"2024-09-25T20:03:30.197Z","updated_at":"2025-04-05T12:40:38.935Z","avatar_url":"https://github.com/pythoninthegrass.png","language":"HTML","readme":"# SQL Bootcamp: Go from Zero to Hero\n\nLoosely follows the Udemy course [The Complete SQL Bootcamp: Go from Zero to Hero](https://www.udemy.com/course/the-complete-sql-bootcamp/) led by instructor Jose Portilla.\n\n## Minimum Requirements\n\n* [docker](https://docs.docker.com/get-docker/)\n* [python](https://www.python.org/downloads/)\n* [pgadmin](https://www.pgadmin.org/download/)\n\n## Recommended Requirements\n\n* [devbox](https://www.jetify.com/devbox/docs/installing_devbox/)\n* [TablePlus](https://tableplus.com/)\n\n## Quickstart\n\n* Clone the repository via `git clone https://github.com/pythoninthegrass/sql_zero_to_hero.git`\n* Change into the directory via `cd sql_zero_to_hero`\n* Copy `.env.example` to `.env` and update the values\n* Run `docker-compose up -d` to start the PostgreSQL and Python containers\n* Exec into either\n    ```bash\n    # python\n    docker exec -it python-udemy bash\n\n    # postgres\n    docker exec -it postgres-udemy bash\n    ```\n* To exit the container, type `exit`, and hit `Return`\n* Connect to the PostgreSQL container via either pgadmin or TablePlus\n  * For the latter, it'll look like this:\n    ![TablePlus](static/01_table_plus.png)\n    ![TablePlus](static/02_table_plus.png)\n* Once finished, run `docker-compose stop` to stop the containers\n* To remove the containers, run `docker-compose down --volumes`\n\n## TODO\n\n* Test the [main.py](main.py) script. e.g.:\n    ```bash\n    λ docker exec -it python-udemy bash\n    root@python-udemy:/app# ./main.py\n    Traceback (most recent call last):\n    File \"/app/./main.py\", line 24, in \u003cmodule\u003e\n        cur.execute(\"SELECT * FROM payment\")\n    psycopg2.errors.UndefinedTable: relation \"payment\" does not exist\n    LINE 1: SELECT * FROM payment\n                        ^\n    ```\n* Complete course\n* Organize sections with relevant SQL files and notes\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fsql_zero_to_hero","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpythoninthegrass%2Fsql_zero_to_hero","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpythoninthegrass%2Fsql_zero_to_hero/lists"}