{"id":16752833,"url":"https://github.com/aalekhpatel07/8-week-sql-challenge","last_synced_at":"2026-04-24T20:34:17.508Z","repository":{"id":179350284,"uuid":"663316468","full_name":"aalekhpatel07/8-week-sql-challenge","owner":"aalekhpatel07","description":"My solutions and walkthroughs to the 8 Week SQL challenge","archived":false,"fork":false,"pushed_at":"2023-07-12T06:03:30.000Z","size":38,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T02:52:01.880Z","etag":null,"topics":["8-week-sql-challenge","mdbook","postgresql"],"latest_commit_sha":null,"homepage":"https://aalekhpatel07.github.io/8-week-sql-challenge/","language":"Shell","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/aalekhpatel07.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":"2023-07-07T03:19:17.000Z","updated_at":"2023-07-08T10:37:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"0f6e18e4-6127-40ba-999b-9e50d7431df6","html_url":"https://github.com/aalekhpatel07/8-week-sql-challenge","commit_stats":null,"previous_names":["aalekhpatel07/8-week-sql-challenge"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aalekhpatel07/8-week-sql-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalekhpatel07%2F8-week-sql-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalekhpatel07%2F8-week-sql-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalekhpatel07%2F8-week-sql-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalekhpatel07%2F8-week-sql-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aalekhpatel07","download_url":"https://codeload.github.com/aalekhpatel07/8-week-sql-challenge/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aalekhpatel07%2F8-week-sql-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32239883,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T13:21:15.438Z","status":"ssl_error","status_checked_at":"2026-04-24T13:21:15.005Z","response_time":64,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["8-week-sql-challenge","mdbook","postgresql"],"created_at":"2024-10-13T02:48:16.534Z","updated_at":"2026-04-24T20:34:17.502Z","avatar_url":"https://github.com/aalekhpatel07.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 8 Week SQL Challenge\n\nWe'll try to implement solutions for some of the case studies from [8 Week SQL Challenge](https://8weeksqlchallenge.com/).\n\n[Source Repo](https://github.com/aalekhpatel07/8-week-sql-challenge)\n\n## Solutions/Walkthroughs\n\nRead the [book](https://aalekhpatel07.github.io/8-week-sql-challenge/) and follow along! \n\nOr jump to individual challenges:\n\n- [x] [Danny's Diner](https://aalekhpatel07.github.io/8-week-sql-challenge/01-dannys-diner/index.html)\n- [ ] [Pizza Runner](https://aalekhpatel07.github.io/8-week-sql-challenge/02-pizza-runner/index.html)\n- [ ] ...\n## Setting up\n\nIf you wish to follow along these solutions, you might find the best value in running them as you go, and for that you need a working Postgres database environment.\n\nWe'll use a Docker container for Postgres so we don't have to install it locally.\n\nFirst, clone the repository to get the schemas for the challenges into a `schema/` directory.\n\n```sh\ngit clone https://github.com/aalekhpatel07/8-week-sql-challenge \u0026\u0026 \\\n    cd 8-week-sql-challenge\n```\n\nThen, run the following command to start a Postgres14 docker container that includes the schemas for the challenges.\n\n```sh\ndocker run \\\n  --name \"8-week-sql-challenge\" \\\n  --publish \"5432:5432\" \\\n  --env POSTGRES_USER=postgres \\\n  --env POSTGRES_PASSWORD=postgres \\\n  --volume `pwd`/postgres_db:/var/lib/postgresql/data \\\n  --volume `pwd`/schema:/docker-entrypoint-initdb.d/ \\\n  --rm \\\n  --detach \\\n  postgres:14.1-alpine\n```\n\nOnce the container has started, use your favourite IDE to connect to the database at `0.0.0.0:5432`. \n\nThe database has user/pass of `postgres/postgres` and the URL is `jdbc:postgresql://localhost:5432/`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faalekhpatel07%2F8-week-sql-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faalekhpatel07%2F8-week-sql-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faalekhpatel07%2F8-week-sql-challenge/lists"}