{"id":25895235,"url":"https://github.com/charlieroth/northwind-sql","last_synced_at":"2026-04-24T21:31:54.335Z","repository":{"id":279181618,"uuid":"937776510","full_name":"charlieroth/northwind-sql","owner":"charlieroth","description":"Personal project to deeply learn SQL","archived":false,"fork":false,"pushed_at":"2025-02-24T13:01:18.000Z","size":125,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-08T10:51:46.468Z","etag":null,"topics":["postgresql","sql"],"latest_commit_sha":null,"homepage":"","language":"Python","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/charlieroth.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":"2025-02-23T21:29:32.000Z","updated_at":"2025-02-24T13:01:26.000Z","dependencies_parsed_at":"2025-02-24T08:36:43.941Z","dependency_job_id":"2676074d-f4a5-4b5e-bb7e-672733182106","html_url":"https://github.com/charlieroth/northwind-sql","commit_stats":null,"previous_names":["charlieroth/northwind-sql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/charlieroth/northwind-sql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlieroth%2Fnorthwind-sql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlieroth%2Fnorthwind-sql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlieroth%2Fnorthwind-sql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlieroth%2Fnorthwind-sql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/charlieroth","download_url":"https://codeload.github.com/charlieroth/northwind-sql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/charlieroth%2Fnorthwind-sql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32241594,"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":["postgresql","sql"],"created_at":"2025-03-02T22:30:05.688Z","updated_at":"2026-04-24T21:31:54.320Z","avatar_url":"https://github.com/charlieroth.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `northwind-sql`\n\n`northwind-sql` is a project to learn SQL using the fictional sales data of\nthe Northwind Traders company, which imports and exports specialtiy foods\nfrom around the world.\n\nThe Northwind database is a sample database that was originally created by\nMicrosoft and used as the basis for their tutorials in a variety of database\nproducts for decades. The Northwind database contains the sales data for a\nfictitious company called “Northwind Traders,” which imports and exports\nspecialty foods from around the world. The Northwind database is an excellent\ntutorial schema for a small-business ERP, with customers, orders, inventory,\npurchasing, suppliers, shipping, employees, and single-entry accounting.\n\n## Project Details\n\nThis project includes a Docker Compose file to start a PostgreSQL database\nand run database migrations with the `geni` tool. The project also includes\nexample queries that cover the following topics:\n\n- SQL Basic\n- Manipulating Data\n- Mutli-Table Queries\n- Aggregate Functions\n- Scalar Functions\n- Subqueries and Common Table Expressions\n- Window Functions\n\n## Project Setup\n\nClone the repository:\n\n```bash\ngit clone https://github.com/charlieroth/northwind-sql.git\n```\n\nSince this project uses [uv](https://docs.astral.sh/uv/), you can initialize the\nvirtual environment and install the dependencies with the following command:\n\n```bash\nuv sync\n```\n\n### Database Setup\n\nThe project uses PostgreSQL as the database. To start the database and run\nthe database migrations, run the following command:\n\n```bash\ndocker compose up -d\n```\n\n## Seed the Database\n\nThe file `nortwind-data.sql` contains the SQL statements to populate the tables\nwith data. To seed the database, run the following command:\n\n```bash\ndocker exec -i \u003ccotainer-id\u003e psql -h localhost -p 5432 -U postgres -d northwind \u003c ./northwind-data.sql\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlieroth%2Fnorthwind-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcharlieroth%2Fnorthwind-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcharlieroth%2Fnorthwind-sql/lists"}