{"id":31776747,"url":"https://github.com/pacemakerx/leetcode-my-solutions-sql-50","last_synced_at":"2025-10-10T05:55:23.610Z","repository":{"id":316471474,"uuid":"1063184392","full_name":"PacemakerX/leetCode-my-solutions-sql-50","owner":"PacemakerX","description":"This repository contains my solutions for the SQL 50 LEARNING PLAN FROM LEETCODE","archived":false,"fork":false,"pushed_at":"2025-09-24T19:41:07.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-09-24T21:08:34.816Z","etag":null,"topics":["leetcode","leetcode-sql","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/PacemakerX.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-24T09:26:50.000Z","updated_at":"2025-09-24T19:41:11.000Z","dependencies_parsed_at":"2025-09-24T21:08:37.081Z","dependency_job_id":"ac3ab9e7-fde5-432b-8879-32c27668546a","html_url":"https://github.com/PacemakerX/leetCode-my-solutions-sql-50","commit_stats":null,"previous_names":["pacemakerx/leetcode-my-solutions-sql-50"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/PacemakerX/leetCode-my-solutions-sql-50","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacemakerX%2FleetCode-my-solutions-sql-50","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacemakerX%2FleetCode-my-solutions-sql-50/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacemakerX%2FleetCode-my-solutions-sql-50/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacemakerX%2FleetCode-my-solutions-sql-50/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PacemakerX","download_url":"https://codeload.github.com/PacemakerX/leetCode-my-solutions-sql-50/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PacemakerX%2FleetCode-my-solutions-sql-50/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002863,"owners_count":26083468,"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-10-10T02:00:06.843Z","response_time":62,"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":["leetcode","leetcode-sql","sql"],"created_at":"2025-10-10T05:55:18.264Z","updated_at":"2025-10-10T05:55:23.604Z","avatar_url":"https://github.com/PacemakerX.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# LeetCode SQL 50 This repository contains all my **accepted solutions** for the **LeetCode SQL 50** 🚀 Getting Started\n\n![LeetCode Logo](https://workablehr.s3.amazonaws.com/uploads/account/open_graph_logo/604858/social?1687549873000)\n\n[![SQL](https://img.shields.io/badge/Language-SQL-336791?logo=postgresql)](https://www.w3schools.com/sql/)\n[![MySQL](https://img.shields.io/badge/MySQL-%2300f.svg?logo=mysql\u0026logoColor=white)](https://www.mysql.com/)\n[![GitHub Stars](https://img.shields.io/github/stars/PacemakerX/leetCode-my-solutions-sql-50?style=social)](https://github.com/PacemakerX/leetCode-my-solutions-sql-50/stargazers)\n[![License](https://img.shields.io/github/license/PacemakerX/leetCode-my-solutions-sql-50)](./LICENSE)\n[![GitHub Last Commit](https://img.shields.io/github/last-commit/PacemakerX/leetCode-my-solutions-sql-50)](https://github.com/PacemakerX/leetCode-my-solutions-sql-50/commits/main)\n[![GitHub Repo Size](https://img.shields.io/github/repo-size/PacemakerX/leetCode-my-solutions-sql-50)](https://github.com/PacemakerX/leetCode-my-solutions-sql-50)\n[![GitHub Issues](https://img.shields.io/github/issues/PacemakerX/leetCode-my-solutions-sql-50)](https://github.com/PacemakerX/leetCode-my-solutions-sql-50/issues)\n[![Visual Studio Code](https://custom-icon-badges.demolab.com/badge/Visual%20Studio%20Code-0078d7.svg?logo=vsc\u0026logoColor=white)](https://github.com/PacemakerX/leetCode-my-solutions-sql-50)\n\n### Prerequisites\n\n- Basic understanding of SQL syntax\n- Access to a SQL database system (MySQL, PostgreSQL, SQLite, etc.)\n- SQL client or online SQL playground\n\n### Usage\n\n1. **Clone the repository:**\n\n```bash\ngit clone https://github.com/PacemakerX/leetCode-my-solutions-sql-50.git\ncd leetCode-my-solutions-sql-50\n```\n\n2. **Browse solutions:**\n\n- Each file is named `questionX_YYYY.sql` where X is the question number and YYYY is the LeetCode problem ID\n- Open any `.sql` file to view the solution\n- Solutions include comments explaining the approach\n\n3. **Test solutions:**\n\n- Copy the SQL code to your preferred SQL environment\n- Use the sample data provided in LeetCode problem descriptions\n- Verify results match expected outputs\n\n## 📁 Repository Structure\n\n```\n├── README.md                 # This file\n├── question1_1757.sql        # Recyclable and Low Fat Products\n├── question2_584.sql         # Find Customer Referee\n├── question3_595.sql         # Big Countries\n├── question4_1148.sql        # Article Views I\n├── question5_1683.sql        # Invalid Tweets\n└── ... (more solutions)\n```\n\nstudy plan, organized by question number and problem ID. It's a comprehensive collection focusing specifically on SQL database problems to help master essential SQL concepts and techniques.\n\n## 📋 About SQL 50\n\nThe **LeetCode SQL 50** is a curated list of essential SQL problems that cover fundamental database concepts including:\n\n- **Select \u0026 Basic Filtering**\n- **Joins** (Inner, Left, Right, Full Outer)\n- **Aggregate Functions** (COUNT, SUM, AVG, MIN, MAX)\n- **Subqueries \u0026 CTEs**\n- **Window Functions**\n- **String Functions**\n- **Date/Time Operations**\n- **Advanced SQL Techniques**\n\n## 🎯 Why This Repository?\n\nThis repository serves as:\n\n- **SQL Mastery**: A systematic approach to learning essential SQL concepts\n- **Interview Preparation**: Perfect for preparing SQL questions commonly asked in technical interviews\n- **Reference Guide**: Quick access to SQL patterns and techniques\n- **Learning Resource**: Clean, commented solutions for SQL beginners and intermediate learners\n- **Progress Tracking**: Personal archive of SQL 50 completion journey\n\n## 📊 LeetCode Stats\n\n\u003cp align=\"left\"\u003e\n  \u003cimg src=\"https://leetcode-badge-showcase.vercel.app/api?username=PacemakerX\u0026theme=tokyonight\" alt=\"LeetCode Badges\" width=\"400\" height=\"100%\" /\u003e\n  \u003cimg src=\"https://leetcard.jacoblin.cool/PacemakerX?ext=heatmap\" alt=\"LeetCode Heatmap\" width=\"400\" /\u003e\n\u003c/p\u003e\n\n## Connect with Me on LeetCode!\n\n[![PacemakerX on LeetCode](https://assets.leetcode.com/users/avatars/avatar_1702544079.png)](https://leetcode.com/u/PacemakerX/)\n\nVisit my **[LeetCode Profile](https://leetcode.com/u/PacemakerX/)** to see my complete programming journey!\n\n## Feel free to connect with me!\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"mailto:sparsh.officialwork@gmail.com\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Gmail-sparsh.officialwork@gmail.com-D14836?style=for-the-badge\u0026logo=gmail\u0026logoColor=white\" alt=\"Gmail Badge\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://www.linkedin.com/in/sparshsoni\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/LinkedIn-Connect-blue?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white\" alt=\"LinkedIn Badge\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacemakerx%2Fleetcode-my-solutions-sql-50","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpacemakerx%2Fleetcode-my-solutions-sql-50","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpacemakerx%2Fleetcode-my-solutions-sql-50/lists"}