Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ndleah/sql-hackerrank-challenge-solutions
HackerRank SQL track solutions
https://github.com/ndleah/sql-hackerrank-challenge-solutions
challenge hackerrank hackerrank-algorithms-solutions hackerrank-challenges hackerrank-solutions hackerrank-sql problem-solving solutions sql
Last synced: 9 days ago
JSON representation
HackerRank SQL track solutions
- Host: GitHub
- URL: https://github.com/ndleah/sql-hackerrank-challenge-solutions
- Owner: ndleah
- License: mit
- Created: 2021-06-24T15:46:56.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-07-25T14:51:30.000Z (over 3 years ago)
- Last Synced: 2024-11-13T08:39:21.346Z (2 months ago)
- Topics: challenge, hackerrank, hackerrank-algorithms-solutions, hackerrank-challenges, hackerrank-solutions, hackerrank-sql, problem-solving, solutions, sql
- Language: SQL
- Homepage: https://www.hackerrank.com/nduongthucanh?hr_r=1
- Size: 14.6 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Star Badge](https://img.shields.io/static/v1?label=%F0%9F%8C%9F&message=If%20Useful&style=style=flat&color=BC4E99)
[![View Repositories](https://img.shields.io/badge/View-My_Repositories-blue?logo=GitHub)](https://github.com/ndleah?tab=repositories)
[![View My Profile](https://img.shields.io/badge/View-My_Profile-green?logo=GitHub)](https://github.com/ndleah)## Description
The solutions of all the SQL challenges for all easy, medium and hard challenges on HackerRank executed on MS SQL environment compiled with helpful Resources & references related to the challenges.## Domains
### Basic Select Challenges
| Number | Challenges | Solutions |
|:------:|------------|:---------:|
| 1 | [Revising the Select Query I](https://www.hackerrank.com/challenges/revising-the-select-query/problem) | [SQL](Basic%20Select/Revising-the-select-Query-1.sql)
| 2 | [Revising the Select Query II](https://www.hackerrank.com/challenges/revising-the-select-query-2/problem) | [SQL](Basic%20Select/Revising-the-select-Query-2.sql)
| 3 | [Select All](https://www.hackerrank.com/challenges/select-all-sql/problem) | [SQL](Basic%20Select/Select-All.sql)
| 4 | [Select By ID](https://www.hackerrank.com/challenges/select-by-id/problem) | [SQL](Basic%20Select/Select-By-ID.sql)
| 5 | [Japanese Cities' Attributes](https://www.hackerrank.com/challenges/japanese-cities-attributes/problem) | [SQL](Basic%20Select/Japanese-Cities'-Attributes.sql)
| 6 | [Japanese Cities' Names](https://www.hackerrank.com/challenges/japanese-cities-name/problem) | [SQL](Basic%20Select/Japanese-Cities'-Names.sql)
| 7 | [Weather Observation Station 1](https://www.hackerrank.com/challenges/weather-observation-station-1/problem) | [SQL](Basic%20Select/Weather-Observation-Station-1.sql)
| 8 | [Weather Observation Station 3](https://www.hackerrank.com/challenges/weather-observation-station-3/problem) | [SQL](Basic%20Select/Weather-Observation-Station-3.sql)
| 9 | [Weather Observation Station 4](https://www.hackerrank.com/challenges/weather-observation-station-4/problem) | [SQL](Basic%20Select/Weather-Observation-Station-4.sql)
| 10| [Weather Observation Station 5](https://www.hackerrank.com/challenges/weather-observation-station-5/problem) | [SQL](Basic%20Select/Weather-Observation-Station-5.sql)
| 11| [Weather Observation Station 6](https://www.hackerrank.com/challenges/weather-observation-station-6/problem) | [SQL](Basic%20Select/Weather-Observation-Station-6.sql)
| 12| [Weather Observation Station 7](https://www.hackerrank.com/challenges/weather-observation-station-7/problem) | [SQL](Basic%20Select/Weather-Observation-Station-7.sql)
| 13| [Weather Observation Station 8](https://www.hackerrank.com/challenges/weather-observation-station-8/problem) | [SQL](Basic%20Select/Weather-Observation-Station-8.sql)
| 14| [Weather Observation Station 9](https://www.hackerrank.com/challenges/weather-observation-station-9/problem) | [SQL](Basic%20Select/Weather-Observation-Station-9.sql)
| 15| [Weather Observation Station 10](https://www.hackerrank.com/challenges/weather-observation-station-10/problem) | [SQL](Basic%20Select/Weather-Observation-Station-10.sql)
| 16| [Weather Observation Station 11](https://www.hackerrank.com/challenges/weather-observation-station-11/problem) | [SQL](Basic%20Select/Weather-Observation-Station-11.sql)
| 17| [Weather Observation Station 12](https://www.hackerrank.com/challenges/weather-observation-station-12/problem) | [SQL](Basic%20Select/Weather-Observation-Station-12.sql)
| 18| [Higher Than 75 Marks](https://www.hackerrank.com/challenges/more-than-75-marks/problem) | [SQL](Basic%20Select/Higher-Than-75-Marks.sql)
| 19| [Employee Names](https://www.hackerrank.com/challenges/name-of-employees/problem) | [SQL](Basic%20Select/Employee-Names.sql)
| 20| [Employee Salaries](https://www.hackerrank.com/challenges/salary-of-employees/problem) | [SQL](Basic%20Select/Employee-Salaries.sql)### Advanced Select Challenges
| Number | Challenges | Solutions |
|:------:|------------|:---------:|
| 1 |[Type of Triangle](https://www.hackerrank.com/challenges/what-type-of-triangle/problem) | [SQL](Advanced%20Select/Type%20of%20Triangle.sql) |
| 2 |[The PADS](https://www.hackerrank.com/challenges/the-pads/problem) | [SQL](Advanced%20Select/The%20PADS.sql) |
| 3 |[Occupations](https://www.hackerrank.com/challenges/occupations/problem) | [SQL](Advanced%20Select/Occupations.sql) |
| 4 |[Binary Tree Nodes](https://www.hackerrank.com/challenges/binary-search-tree-1/problem) | [SQL](Advanced%20Select/Binary%20Tree%20Nodes.sql)|
| 5 |[New Companies](https://www.hackerrank.com/challenges/the-company/problem) | [SQL](Advanced%20Select/New%20Companies.sql) |### Aggregation Challenges
| Number | Challenges | Solutions |
|:------:|------------|:---------:|
| 1 | [Revising Aggregations - The Count Function](https://www.hackerrank.com/challenges/revising-aggregations-the-count-function/problem) | [SQL](Aggregation/Revising%20Aggregations%20-%20The%20Count%20Function.sql) |
| 2 | [Revising Aggregations - The Sum Function](https://www.hackerrank.com/challenges/revising-aggregations-sum/problem) | [SQL](Aggregation/Revising%20Aggregations%20-%20The%20Sum%20Function.sql) |
| 3 | [Revising Aggregations - Averages](https://www.hackerrank.com/challenges/revising-aggregations-the-average-function/problem) | [SQL](Aggregation/Revising%20Aggregations%20-%20Averages.sql) |
| 4 | [Average Population](https://www.hackerrank.com/challenges/average-population/problem) | [SQL](Aggregation/Average%20Population.sql) |
| 5 | [Japan Population](https://www.hackerrank.com/challenges/japan-population/problem) | [SQL](Aggregation/Japan%20Population.sql) |
| 6 | [Population Density Difference](https://www.hackerrank.com/challenges/population-density-difference/problem) | [SQL](Aggregation/Population%20Density%20Difference.sql) |
| 7 | [The Blunder](https://www.hackerrank.com/challenges/the-blunder/problem) | [SQL](Aggregation/The%20Blunder.sql)
| 8 | [Top Earners](https://www.hackerrank.com/challenges/earnings-of-employees/problem) | [SQL](Aggregation/Top%20Earners.sql) |
| 9 | [Weather Observation Station 2](https://www.hackerrank.com/challenges/weather-observation-station-2/problem) | [SQL](Aggregation/Weather%20Observation%20Station%202.sql) |
| 10| [Weather Observation Station 13](https://www.hackerrank.com/challenges/weather-observation-station-13/problem) | [SQL](Aggregation/Weather%20Observation%20Station%2013.sql) |
| 11| [Weather Observation Station 14](https://www.hackerrank.com/challenges/weather-observation-station-14/problem) | [SQL](Aggregation/Weather%20Observation%20Station%2014.sql) |
| 12| [Weather Observation Station 15](https://www.hackerrank.com/challenges/weather-observation-station-15/problem) | [SQL](Aggregation/Weather%20Observation%20Station%2015.sql) |
| 13| [Weather Observation Station 16](https://www.hackerrank.com/challenges/weather-observation-station-16/problem) | [SQL](Aggregation/Weather%20Observation%20Station%2016.sql) |
| 14| [Weather Observation Station 17](https://www.hackerrank.com/challenges/weather-observation-station-17/problem) | [SQL](Aggregation/Weather%20Observation%20Station%2017.sql) |
| 15| [Weather Observation Station 18](https://www.hackerrank.com/challenges/weather-observation-station-18/problem) | [SQL](Aggregation/Weather%20Observation%20Station%2018.sql) |
| 16| [Weather Observation Station 19](https://www.hackerrank.com/challenges/weather-observation-station-19/problem) | [SQL](Aggregation/Weather%20Observation%20Station%2019.sql) |
| 17| [Weather Observation Station 20](https://www.hackerrank.com/challenges/weather-observation-station-20/problem) | [SQL](Aggregation/Weather%20Observation%20Station%2020.sql) |### Basic Join
| Number | Challenges | Solutions |
|:------:|------------|:---------:|
| 1 | [Asian Population](https://www.hackerrank.com/challenges/asian-population/problem) | [SQL](Basic%20Join/Asian%20Population.sql) |
| 2 | [African Cities](https://www.hackerrank.com/challenges/african-cities/problem) | [SQL](Basic%20Join/African%20Cities.sql) |
| 3 | [Average Population of Each Continent](https://www.hackerrank.com/challenges/average-population-of-each-continent/problem) | [SQL](Basic%20Join/Average%20Population%20of%20Each%20Continent.sql) |
| 4 | [The Report](https://www.hackerrank.com/challenges/the-report/submissions/code/94188063) | [SQL](Basic%20Join/The%20Report.sql) |
| 5 | [Top Competitors](https://www.hackerrank.com/challenges/full-score/problem) | [SQL](Basic%20Join/Top%20Competitors.sql) |
| 6 | [Ollivander's Inventory](https://www.hackerrank.com/challenges/harry-potter-and-wands/problem) | [SQL](Basic%20Join/Ollivander's%20Inventory.sql) |
| 7 | [Challenges](https://www.hackerrank.com/challenges/challenges/problem) | [SQL](Basic%20Join/Challenges.sql) |### Advanced Select Challenges
| Number | Challenges | Solutions |
|:------:|------------|:---------:|
| 1 |[Type of Triangle](https://www.hackerrank.com/challenges/what-type-of-triangle/problem) | [SQL](Advanced%20Select/Type%20of%20Triangle.sql) |
| 2 |[The PADS](https://www.hackerrank.com/challenges/the-pads/problem) | [SQL](Advanced%20Select/The%20PADS.sql) |
| 3 |[Occupations](https://www.hackerrank.com/challenges/occupations/problem) | [SQL](Advanced%20Select/Occupations.sql) |
| 4 |[Binary Tree Nodes](https://www.hackerrank.com/challenges/binary-search-tree-1/problem) | [SQL](Advanced%20Select/Binary%20Tree%20Nodes.sql)|
| 5 |[New Companies](https://www.hackerrank.com/challenges/the-company/problem) | [SQL](Advanced%20Select/New%20Companies.sql) |### Alternative Queries
| Number | Challenges | Solutions |
|:------:|------------|:---------:|
| 1 |[Draw The Triangle 1](https://www.hackerrank.com/challenges/draw-the-triangle-1) | [SQL](Alternative%20Queries/Draw%20The%Trangle%1.sql) |
| 2 |[Draw The Triangle 2](https://www.hackerrank.com/challenges/draw-the-triangle-2) | [SQL](Alternative%20Queries/Draw%20The%Trangle%2.sql) |## License
This repository is licensed under MIT License - see [License](LICENSE) for more details___________________________________
© 2021 Leah Nguyen