{"id":25735735,"url":"https://github.com/vishwas-chakilam/hackerrank-sql-solutions","last_synced_at":"2026-05-16T06:40:29.656Z","repository":{"id":276430972,"uuid":"929268194","full_name":"Vishwas-Chakilam/HackerRank-SQL-Solutions","owner":"Vishwas-Chakilam","description":"This repository contains optimized solutions for HackerRank SQL challenges, covering Basic to Advanced SQL concepts. Each solution includes the problem statement, query, and explanation.  📌 Topics: SELECT, Joins, Aggregations, Subqueries, Window Functions \u0026 more.  🚀 Perfect for SQL learners \u0026 Data Analysts! Star ⭐ the repo if you find it helpful!","archived":false,"fork":false,"pushed_at":"2025-02-21T05:10:19.000Z","size":72,"stargazers_count":163,"open_issues_count":0,"forks_count":42,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-28T15:36:10.042Z","etag":null,"topics":["database","mysql","query","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/Vishwas-Chakilam.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}},"created_at":"2025-02-08T06:25:19.000Z","updated_at":"2025-10-17T16:06:59.000Z","dependencies_parsed_at":"2025-07-02T23:41:34.909Z","dependency_job_id":null,"html_url":"https://github.com/Vishwas-Chakilam/HackerRank-SQL-Solutions","commit_stats":null,"previous_names":["vishwas-chakilam/hackerrank_sql"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Vishwas-Chakilam/HackerRank-SQL-Solutions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vishwas-Chakilam%2FHackerRank-SQL-Solutions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vishwas-Chakilam%2FHackerRank-SQL-Solutions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vishwas-Chakilam%2FHackerRank-SQL-Solutions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vishwas-Chakilam%2FHackerRank-SQL-Solutions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Vishwas-Chakilam","download_url":"https://codeload.github.com/Vishwas-Chakilam/HackerRank-SQL-Solutions/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Vishwas-Chakilam%2FHackerRank-SQL-Solutions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33092970,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T04:41:52.686Z","status":"ssl_error","status_checked_at":"2026-05-16T04:41:52.009Z","response_time":115,"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","query","sql"],"created_at":"2025-02-26T05:31:47.962Z","updated_at":"2026-05-16T06:40:29.634Z","avatar_url":"https://github.com/Vishwas-Chakilam.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# **HackerRank SQL Solutions**  \n\n## 📌 Introduction  \nWelcome to the **HackerRank SQL Solutions** repository! 🚀 This repo contains **optimized SQL solutions** for **HackerRank SQL challenges**, ranging from **basic queries** to **advanced SQL techniques**.  \n\nEach solution includes:  \n✔️ **Problem Statement** 📜  \n✔️ **Optimized SQL Query** 💡  \n✔️ **Explanation of the Approach** 📝  \n\nWhether you're a **beginner learning SQL** or a **data analyst looking to sharpen your skills**, this repository is for you!  \n\n---\n\n## 📂 Repository Structure  \nThe repository is structured into categorized folders based on SQL topics:  \n\n```\n📂 HackerRank-SQL-Solutions\n│-- 📂 Basic Select\n│-- 📂 Advanced Select\n│-- 📂 Aggregation\n│-- 📂 Basic Join\n│-- 📂 Advanced Join\n│-- 📂 Alternative Queries\n\n```\nEach folder contains **SQL scripts** with the corresponding problem statements and solutions.  \n\n---\n\n## 🚀 Topics Covered  \n✔️ **Basic Queries**: `SELECT`, `WHERE`, `ORDER BY`, `LIMIT`  \n✔️ **Aggregation**: `GROUP BY`, `HAVING`, `COUNT`, `SUM`, `AVG`  \n✔️ **Joins**: `INNER JOIN`, `LEFT JOIN`, `RIGHT JOIN`, `FULL JOIN`  \n✔️ **Advanced SQL**: `Window Functions`, `CTEs`, `Subqueries`  \n\n---\n\n## 🔧 Prerequisites  \nBefore running the solutions, make sure you have:  \n✅ A **SQL environment** installed (MySQL, PostgreSQL, SQLite, etc.)  \n✅ Basic knowledge of **SQL syntax**  \n\n---\n\n## 🛠️ How to Use  \n1. **Clone the repository**  \n   ```bash\n   git clone https://github.com/Vishwas-Chakilam/HackerRank-SQL-Solutions.git\n   ```\n2. **Navigate to the relevant topic folder**  \n3. **Open the SQL script and execute it** in a compatible SQL environment  \n\n---\n\n## 💡 Alternative Solutions  \nDifferent SQL problems can have multiple valid approaches. The **Alternative Solutions** folder contains **optimized** or **different methods** to solve the same problems for better understanding.  \n\n---\n\n## 🤝 Contributions  \n💡 Have a **better solution**? Found an **optimization**?  \n📌 Feel free to **contribute** by opening a **pull request**!  \n\n**Contribution Guidelines:**  \n- **Follow standard SQL formatting** for readability  \n- **Comment your query** to explain the approach  \n- **Ensure correctness and efficiency** before submitting  \n\n---\n\n## 📚 Useful Resources  \nHere are some great learning materials to help you master SQL:  \n\n📌 [SQL Tutorial - W3Schools](https://www.w3schools.com/sql/)  \n📌 [Mode Analytics SQL Tutorial](https://mode.com/sql-tutorial/)  \n📌 [LeetCode SQL Questions](https://leetcode.com/problemset/database/)  \n📌 [PostgreSQL Documentation](https://www.postgresql.org/docs/)  \n\n---\n\n## ❓ FAQs  \n\n### 1️⃣ What SQL database should I use to run these queries?  \nThe solutions are written in **standard SQL** and should work in **MySQL, PostgreSQL, and SQL Server**. Some functions may vary slightly across different databases.  \n\n### 2️⃣ How can I contribute?  \nFork the repo, create a new branch, add your solution, and open a **pull request**! 🎉  \n\n### 3️⃣ How can I practice SQL more?  \nApart from **HackerRank**, you can practice on:  \n- **LeetCode (SQL Questions)**  \n- **Mode Analytics SQL Tutorials**  \n- **SQLZoo.net**  \n\n---\n\n## 📜 License  \nThis repository is **open-source** and available under the **MIT License**.  \n\n---\n\n## 📬 Contact  \nFor queries, discussions, or suggestions:  \n📧 **Reach out via GitHub Issues** or **Email**  \n\n📌 If this repo helped you, **don’t forget to ⭐ star it and share!** 🚀  \n\n---\n\n### **Happy Coding! 🖥️🎯**  \n\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishwas-chakilam%2Fhackerrank-sql-solutions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvishwas-chakilam%2Fhackerrank-sql-solutions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishwas-chakilam%2Fhackerrank-sql-solutions/lists"}