Skip to content

Commit

Permalink
Update hackerrank.md
Browse files Browse the repository at this point in the history
  • Loading branch information
lifeparticle authored Jul 19, 2020
1 parent 1c40d26 commit e6c478b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hackerrank.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ ORDER BY Grades.Grade DESC, Students.name ASC, Students.marks ASC;
6. https://www.hackerrank.com/challenges/placements/problem

```mysql
SELECT s.name FROM students AS s
JOIN packages AS p ON s.id = p.id
JOIN friends AS f ON s.id = f.id
JOIN packages AS fp ON f.friend_id = fp.id
WHERE fp.salary > p.salary
ORDER BY fp.salary ASC;
```

7. https://www.hackerrank.com/challenges/sql-projects/problem
Expand Down

0 comments on commit e6c478b

Please sign in to comment.