Here is the link of the question.
Hackerrank occupations problem link
I\'m new to sql and this community. So in advance; I\'m sorry if this is too basic stuff