This repository includes my answers for the SQL practice questions provided by HackerRank.
The questions can be answered in 4 different types of SQL flavours and I decided to answer them using MySQL.
The questions are divided into 6 types:
- Basic Select
- Aggregation
- Basic Joins
- Advanced Select
- Advanced Joins
- Alternative Queries
So far I have answered 45 out of 58 questions. The repository will get updated from time to time when I answer more of the questions.
| Number | Question | Solution |
|---|---|---|
| 1 | Population Census | Click Here |
| 2 | African Cities | Click Here |
| 3 | Average Population of Each Continent | Click Here |
| 4 | The Report | Click Here |
| 5 | Top Competitors | Click Here |
| 6 | Ollivander's Inventory | Click Here |
| 7 | Contest Leaderboard | Click Here |
| 8 | Challenges | Coming Soon |
| Number | Question | Solution |
|---|---|---|
| 1 | Type of Triangle | Click Here |
| 2 | Occupations | Coming Soon |
| 3 | Binary Tree Nodes | Coming Soon |
| 4 | New Companies | Coming Soon |
| 5 | The PADS | Coming Soon |
| Number | Question | Solution |
|---|---|---|
| 1 | SQL Project Planning | Coming Soon |
| 2 | Placements | Coming Soon |
| 3 | Symmetric Pairs | Coming Soon |
| 4 | Interviews | Coming Soon |
| 5 | 15 Days of Learning SQL | Coming Soon |
| Number | Question | Solution |
|---|---|---|
| 1 | Draw The Triangle 1 | Coming Soon |
| 2 | Draw The Triangle 2 | Coming Soon |
| 3 | Print Prime Numbers | Coming Soon |