{"id":22065708,"url":"https://github.com/karenpayneoregon/northwind2020-scripts","last_synced_at":"2026-04-30T18:31:53.282Z","repository":{"id":110840664,"uuid":"278859317","full_name":"karenpayneoregon/NorthWind2020-scripts","owner":"karenpayneoregon","description":"Modified NorthWind database script","archived":false,"fork":false,"pushed_at":"2020-07-13T14:18:12.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T18:17:08.690Z","etag":null,"topics":["database","microsoft-northwind-database","sql","sql-server","sqlserver","tsql"],"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/karenpayneoregon.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-07-11T12:41:33.000Z","updated_at":"2020-11-03T01:07:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"8c13ea77-20b8-4eda-ae63-d696913b10e3","html_url":"https://github.com/karenpayneoregon/NorthWind2020-scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/karenpayneoregon/NorthWind2020-scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FNorthWind2020-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FNorthWind2020-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FNorthWind2020-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FNorthWind2020-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karenpayneoregon","download_url":"https://codeload.github.com/karenpayneoregon/NorthWind2020-scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FNorthWind2020-scripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32473804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"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":["database","microsoft-northwind-database","sql","sql-server","sqlserver","tsql"],"created_at":"2024-11-30T19:21:30.811Z","updated_at":"2026-04-30T18:31:53.265Z","avatar_url":"https://github.com/karenpayneoregon.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Microsoft NorthWind modified\n\nBelow are links for a modified version of Microsoft NorthWind database with \n- Better primary keys\n- Entities split up e.g. country string to country identifier\n- No spaces in table names\n\n### Create a populate\nUse the [following link](https://gist.github.com/karenpayneoregon/9bdf1a7d5310ac1d562b2326d79d6038) for the script to create the database and populate tables best done in SSMS (SQL-Server Management Studio).\n\n### Sample SELECT statements\n- [Customers](https://gist.github.com/karenpayneoregon/55cfa05ac21809ffed6146089fd7649d) \n- [Employees](https://gist.github.com/karenpayneoregon/d7a287a9ebb18b4d9e1363f92812d447)\n- [Products by category](https://gist.github.com/karenpayneoregon/18df5808020872215895192c50fcd482)\n- [Order by order identifier](https://gist.github.com/karenpayneoregon/bc8329737eee80dfd2f9df0f9d3dbc63)\n- [Order details by order identifier](https://gist.github.com/karenpayneoregon/2711f4edeaa9f374f6cafef479d265fc)\n \n```sql\nSELECT Cust.CustomerIdentifier, \n       Cust.CompanyName, \n       Cust.ContactId, \n       CT.ContactTitle, \n       C.FirstName, \n       C.LastName, \n       Cust.Street, \n       Cust.City, \n       Cust.Region, \n       Cust.PostalCode, \n       Countries.[Name] AS CountryName, \n       Cust.CountryIdentifier, \n       Cust.Phone, \n       Cust.Fax, \n       Cust.ContactTypeIdentifier, \n       Cust.ModifiedDate\nFROM Customers AS Cust\n     INNER JOIN Contacts AS C ON Cust.ContactId = C.ContactId\n     INNER JOIN ContactType AS CT ON Cust.ContactTypeIdentifier = CT.ContactTypeIdentifier\n     INNER JOIN Countries ON Cust.CountryIdentifier = Countries.CountryIdentifier;\n```\n# Advance evolving version\nThe following repository is a work in progress using Microsoft Entity Framework Core 3x\n\n[Microsoft NorthWind database 2020 Part 1](https://github.com/karenpayneoregon/NorthWind-2020)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fnorthwind2020-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarenpayneoregon%2Fnorthwind2020-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fnorthwind2020-scripts/lists"}