{"id":26373165,"url":"https://github.com/syed-amjad-ali/restaurant-sales-sql-project","last_synced_at":"2026-01-03T13:42:04.561Z","repository":{"id":269504283,"uuid":"907625814","full_name":"Syed-Amjad-Ali/Restaurant-Sales-SQL-Project","owner":"Syed-Amjad-Ali","description":"This was a simple SQL project where I analyzed restaurant sales data, showcasing skills in data creation and querying. The project explores menu performance, order trends, and customer insights.","archived":false,"fork":false,"pushed_at":"2025-01-09T00:54:57.000Z","size":205,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-09T01:55:22.652Z","etag":null,"topics":["aggregations","business-intelligence","data-analysis","guided-project","joins","maven-analytics","querying","restaurant-sales","sales-data","sql","subqueries"],"latest_commit_sha":null,"homepage":"","language":"SQL","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/Syed-Amjad-Ali.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-12-24T02:51:18.000Z","updated_at":"2025-01-09T00:57:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c6cf8f3-515e-43da-a204-4e0e9be671e8","html_url":"https://github.com/Syed-Amjad-Ali/Restaurant-Sales-SQL-Project","commit_stats":null,"previous_names":["syed-amjad-ali/restaurant-sales-sql-project"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syed-Amjad-Ali%2FRestaurant-Sales-SQL-Project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syed-Amjad-Ali%2FRestaurant-Sales-SQL-Project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syed-Amjad-Ali%2FRestaurant-Sales-SQL-Project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Syed-Amjad-Ali%2FRestaurant-Sales-SQL-Project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Syed-Amjad-Ali","download_url":"https://codeload.github.com/Syed-Amjad-Ali/Restaurant-Sales-SQL-Project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243956912,"owners_count":20374573,"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","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":["aggregations","business-intelligence","data-analysis","guided-project","joins","maven-analytics","querying","restaurant-sales","sales-data","sql","subqueries"],"created_at":"2025-03-17T01:27:34.470Z","updated_at":"2026-01-03T13:42:04.514Z","avatar_url":"https://github.com/Syed-Amjad-Ali.png","language":"SQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Restaurant-Sales-SQL-Project          \n\n\u003cimg src=\"./restaurant.png\" alt=\"Maven Analytics Badge\" width=\"200\" /\u003e\n\n\n## Overview\n\nThis project was part of a guided exercise from Maven Analytics, where I worked with an imaginary restaurant sales dataset. The exercise provided the dataset and database schema, and I focused on solving business-related questions by writing SQL queries.\n \n\nThe project helped me practice:\n1. **Data Analysis**: Writing SQL queries to gain insights into menu performance, order trends, and customer preferences.\n2. **Problem Solving**: Answering real-world questions through advanced SQL techniques like joins, aggregations, and subqueries.\n\nBy completing this project, I gained hands-on experience with SQL and strengthened my ability to analyze data effectively.\n\n\n\n\n## Database Schema\n\n### Tables\n\n1. **menu_items**\n   - Contains details about menu items, including their name, category, and price.\n   - **Columns**:\n     - `menu_item_id` (Primary Key): Unique identifier for each menu item.\n     - `item_name`: Name of the menu item.\n     - `category`: Type of cuisine or dish.\n     - `price`: Cost of the menu item.\n\n2. **order_details**\n   - Contains details about customer orders, including items ordered and their timestamps.\n   - **Columns**:\n     - `order_details_id` (Primary Key): Unique identifier for each order detail.\n     - `order_id`: Identifier for a specific order.\n     - `order_date`: Date of the order.\n     - `order_time`: Time of the order.\n     - `item_id`: Identifier for the ordered menu item (Foreign Key linked to `menu_items.menu_item_id`).\n\n## Skills Demonstrated\n\n- **Database Design**: I worked on creating and populating tables with structured data.\n- **Data Manipulation**: I wrote and executed SQL queries to extract meaningful insights from the data.\n- **Joins and Aggregations**: I combined data from multiple tables and used aggregation techniques to analyze trends.\n- **Advanced Querying**: I applied techniques like subqueries, filters, and grouping to answer complex questions.\n\n\n\n## Questions Answered\n\n### Menu Analysis\n- How many items are on the menu?\n- What are the least and most expensive items on the menu?\n- How many Italian dishes are on the menu? What are the least and most expensive Italian dishes?\n- How many dishes are in each category?\n- What is the average price of dishes in each category?\n\n### Order Trends\n- What is the date range of the orders in the dataset?\n- How many orders and items were made within this date range?\n- Which orders had the most number of items?\n- How many orders had more than 12 items?\n\n### Combined Analysis (Menu + Orders)\n- What were the least and most ordered items? What categories were they in?\n- What were the top 5 orders that spent the most money?\n- What specific items were purchased in the highest spending order?\n- Which categories were most popular in the top 5 highest spending orders?\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyed-amjad-ali%2Frestaurant-sales-sql-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyed-amjad-ali%2Frestaurant-sales-sql-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyed-amjad-ali%2Frestaurant-sales-sql-project/lists"}