{"id":26210553,"url":"https://github.com/uwla/sample_mysql_database","last_synced_at":"2025-08-19T09:14:23.766Z","repository":{"id":123662624,"uuid":"207132821","full_name":"uwla/sample_mysql_database","owner":"uwla","description":"W3Schools MySQL Tutorials Database CSV \u0026 SQL files","archived":false,"fork":false,"pushed_at":"2024-02-08T01:32:09.000Z","size":49,"stargazers_count":13,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-12T07:33:11.593Z","etag":null,"topics":["csv","database","db","mysql","sample","sql","w3schools"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/uwla.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-09-08T15:29:09.000Z","updated_at":"2025-03-03T14:51:40.000Z","dependencies_parsed_at":"2024-02-08T02:30:35.289Z","dependency_job_id":"44f1b0bf-075d-43fb-ae83-e4525b92a8a2","html_url":"https://github.com/uwla/sample_mysql_database","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/uwla/sample_mysql_database","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uwla%2Fsample_mysql_database","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uwla%2Fsample_mysql_database/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uwla%2Fsample_mysql_database/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uwla%2Fsample_mysql_database/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/uwla","download_url":"https://codeload.github.com/uwla/sample_mysql_database/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/uwla%2Fsample_mysql_database/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271129013,"owners_count":24703879,"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-08-19T02:00:09.176Z","response_time":63,"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":["csv","database","db","mysql","sample","sql","w3schools"],"created_at":"2025-03-12T07:29:23.868Z","updated_at":"2025-08-19T09:14:23.245Z","avatar_url":"https://github.com/uwla.png","language":null,"readme":"# Sample MySQL Database\n\nThis repository contains the database used in\n[W3Schools SQL tutorials](https://www.w3schools.com/sql/default.asp).\n\nI cloned the repo https://github.com/AndrejPHP/w3schools-database and made\nsome changes:\n\n- changed table names to match the ones on W3School's website\n- added a text file containing some [query challenges](./queries.txt)\nand [its solutions](./queries-answersheet.sql) \n- exported database to [csv files](./csv) \n\nAbout the last one, you can play with the `csv` files instead of creating a\n`MySQL` database. There is a command-line software called `textql` that allows\nyou to execute SQL commands against structured text such as `csv`.\n\n## Dataset\n\nThe dataset consists of the following tables with their respective columns:\n\n- **Categories**: ID, Name, Description\n- **Customers**: ID, Name, Contact, Address, City, PostalCode, Country\n- **Employees**: EmployeeID, LastName, FirstName, Birthdate, Photo, Notes\n- **OrderDetails**: ID, OrderID, ProductID, Quantity\n- **Orders**: ID, CustomerID, EmployeeID, Date, Shipper ID\n- **Products**: ID, Name, SupplierID, CategoryID, Unit, Price\n- **Shippers**: ID, Name, Phone\n- **Suppliers**: ID, Name, Contact, Address, City, PostalCode, Country, Phone\n\n## Importing the SQL file\n\n```shell\nmyqsl -u yourUserName -p\n```\n\nYou'll be asked to type your password. Then type your password.\n\nAlternatively, you can enter mysql as root. Type the following:\n\n```shell\nsudo mysql\n```\n\nNext, within mysql, type:\n\n```shell\nsource /path/to/w3schools.sql;\n```\n\nOf course, you need to replace `/path/to/w3schools.sql` with the\nabsolute path of the file in your computer.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuwla%2Fsample_mysql_database","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fuwla%2Fsample_mysql_database","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fuwla%2Fsample_mysql_database/lists"}