{"id":18111534,"url":"https://github.com/mahmoudasem337/classicmodels","last_synced_at":"2026-04-28T13:38:36.117Z","repository":{"id":258791520,"uuid":"875246834","full_name":"mahmoudasem337/classicmodels","owner":"mahmoudasem337","description":"This repository contains SQL queries and solutions designed to practice, with the \"Classic Models\" database. It includes a variety of exercises that cover different aspects of SQL. Whether you're a beginner or looking to refine your SQL knowledge, this collection provides practical challenges.","archived":false,"fork":false,"pushed_at":"2024-10-24T22:32:34.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T04:37:29.675Z","etag":null,"topics":["database","mysql-database","sql"],"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/mahmoudasem337.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-10-19T13:30:20.000Z","updated_at":"2024-10-24T22:32:37.000Z","dependencies_parsed_at":"2024-10-27T05:48:48.265Z","dependency_job_id":null,"html_url":"https://github.com/mahmoudasem337/classicmodels","commit_stats":null,"previous_names":["mahmoudasem337/classicmodels"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mahmoudasem337/classicmodels","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoudasem337%2Fclassicmodels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoudasem337%2Fclassicmodels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoudasem337%2Fclassicmodels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoudasem337%2Fclassicmodels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mahmoudasem337","download_url":"https://codeload.github.com/mahmoudasem337/classicmodels/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mahmoudasem337%2Fclassicmodels/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32383782,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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","mysql-database","sql"],"created_at":"2024-11-01T01:06:10.136Z","updated_at":"2026-04-28T13:38:36.078Z","avatar_url":"https://github.com/mahmoudasem337.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# classicmodels\n\n## Overview\nThis repository contains a collection of SQL queries for practicing and learning SQL using the famous \"classicmodels\" sample database.\nThe classicmodels database is a fictional database often used for demonstrating SQL queries, relational database concepts, and more.\nIt contains data related to a company's customers, orders, products, and employees.\n\n## Database Schema\nThe classicmodels database includes the following tables:\n\nCustomers – information about customers.\n\nEmployees – information about employees, including their office location.\n\nOffices – details about office locations.\n\nOrders – customer orders with status and order date.\n\nOrderDetails – detailed information about each order's products.\n\nPayments – customer payment transactions.\n\nProductLines – categories of products.\n\nProducts – specific products with their details.\n\n## ER Diagram\n![Alt text](https://www.mysqltutorial.org/wp-content/uploads/2023/10/mysql-sample-database.png)\n\n## Setup\n### Step 1: Install MySQL\nTo get started, you'll need MySQL installed on your local machine.\n\n[Download and install MySQL](https://dev.mysql.com/downloads/mysql/) from the official MySQL website.\n### Step 2: Download the classicmodels Database\nYou can download the classicmodels database script from the MySQL sample database repository:\n\n[Download classicmodels database](https://www.mysqltutorial.org/wp-content/uploads/2023/10/mysqlsampledatabase.zip)\n### Step 3: Import the Database\n1- Open MySQL Workbench or any MySQL client of your choice.\n\n2- Create a new schema (database) named classicmodels.\n\n3- Run the provided classicmodels.sql script to populate the database.\n\n```\nCREATE DATABASE classicmodels;\nUSE classicmodels;\nSOURCE /path/to/classicmodels.sql;\n```\n### Step 4: Test the Setup\nRun a simple query to test the database setup:\n\n```\nSELECT * FROM customers LIMIT 10;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmoudasem337%2Fclassicmodels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahmoudasem337%2Fclassicmodels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahmoudasem337%2Fclassicmodels/lists"}