This repository contains answers to the attempted Hackerrank challenges.
- Draw The Triangle 1: use of DECLARE and WHILE loop to draw triangle in a loop
- Draw The Triangle 2: use of DECLARE and WHILE loop to draw triangle in a loop in a reverse order
- Weather Observation Station 18: use of ABS, MIN and MAX to calculate a Manhattan distance between 2 points
- Weather Observation Station 19: use of mathematical operations, SQRT, SQUARE to determine an Euclidean distance between 2 points
- Weather Observation Station 20: use of MAX to determine median latitude
- The PADS: use of CONCAT to concatenate string values
- Occupations: use of PIVOT to pivot table
- Binary Tree Nodes: use of CASE to determine node types
- Print Prime Numbers: use of procedural clauses, WHILE loop & IF statement to determine prime numbers in a loop
- Symmetric Pairs: use of SELF JOIN to find symmetric pairs
- The Report: use of CTE and UNION (union with distinct rows & union all with duplicated rows) to create a student grade report
- Challenges: use of CTE and UNION to organise information of hacker who created challenges
- Placements: use of JOIN to compare student salaries
- Top Competitors: use of JOIN to assemble challenge leaderboard
- SQL Project Planning: use of CTE, LEAD and LAG to determine project start and end dates from the project task date history
- Content Leaderboard: use of CTE and aggregations to determine top scoring hackers
- Ollivander's Inventory: use of CTE and RANK to rank the best magical wands
- Interviews: use of CTE to aggregate values before join
- 15 Days of Learning SQL: use of CTE and ROW_NUMBER to aggregate and filter using row numbers