https://github.com/djeada/sql-hackerrank
Solutions to HackerRank SQL problems.
https://github.com/djeada/sql-hackerrank
Last synced: 3 days ago
JSON representation
Solutions to HackerRank SQL problems.
- Host: GitHub
- URL: https://github.com/djeada/sql-hackerrank
- Owner: djeada
- License: mit
- Created: 2021-08-29T22:22:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-08-23T12:19:25.000Z (over 3 years ago)
- Last Synced: 2025-03-30T10:11:42.379Z (10 months ago)
- Homepage:
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Sql-HackerRank
Solutions to HackerRank SQL problems.

## Prerequisites
You will need access to a database as well as the MySQL interpreter.
You may either install them locally or use one of the online interpreters.
### Installing MySQL locally
There are several methods for installing MySQL directly on your machine.
I would recommend that you use Docker.
### Online interpreters
There are several websites that provide online MySQL interpreters that do not require a login or registration.
This website is one of them.
## Basic Select
#
Title
Solution
1
Employee Names
sql
2
Employee Salaries
sql
3
Higher Than 75 Marks
sql
4
Revising the Select Query I
sql
5
Revising the Select Query II
sql
6
Select All
sql
7
Select By ID
sql
8
Japanese Cities' Attributes
sql
9
Japanese Cities' Names
sql
10
Weather Observation Station 1
sql
11
Weather Observation Station 3
sql
12
Weather Observation Station 4
sql
13
Weather Observation Station 5
sql
14
Weather Observation Station 6
sql
15
Weather Observation Station 7
sql
16
Weather Observation Station 8
sql
17
Weather Observation Station 9
sql
18
Weather Observation Station 10
sql
19
Weather Observation Station 11
sql
20
Weather Observation Station 12
sql
## Advanced Select
#
Title
Solution
1
Type of Triangle
sql
2
The PADS
sql
3
Occupations
sql
4
Binary Tree Nodes
sql
5
New Companies
sql
## Aggregation
#
Title
Solution
1
Revising Aggregations - The Count Function
sql
2
Revising Aggregations - The Sum Function
sql
3
Revising Aggregations - Averages
sql
4
Average Population
sql
5
Japan Population
sql
6
Population Density Difference
sql
7
The Blunder
sql
8
Top Earners
sql
9
Weather Observation Station 2
sql
10
Weather Observation Station 13
sql
11
Weather Observation Station 14
sql
12
Weather Observation Station 15
sql
13
Weather Observation Station 16
sql
14
Weather Observation Station 17
sql
15
Weather Observation Station 18
sql
16
Weather Observation Station 19
sql
17
Weather Observation Station 20
sql
## Basic Join
#
Title
Solution
1
Population Census
sql
2
African Cities
sql
3
Average Population of Each Continent
sql
4
The Report
sql
5
Top Competitors
sql
6
Ollivander's Inventory
sql
7
Challenges
sql
8
Contest Leaderboard
sql
## Advanced Join
#
Title
Solution
1
SQL Project Planning
sql
2
Placements
sql
3
Symmetric Pairs
sql
4
Interviews
sql
5
15 Days of Learning SQL
sql
## Alternative Queries
#
Title
Solution
1
Draw The Triangle 1
sql
2
Draw The Triangle 2
sql
3
Print Prime Numbers
sql