Occupations | SQL Advanced Select | HackerRank Solution