sql Print NULL

Pivot the Occupation column in OCCUPATIONS so that each Name is sorted alphabetically

Pivot the Occupation column in OCCUPATIONS so that each Name is sorted alphabetically

Pivot the Occupation column in OCCUPATIONS so that each Name is sorted alphabetically and displayed underneath its corresponding Occupation. The output column headers should be Doctor, Professor, Singer, and Actor, respectively. HackerRank: Note: Print NULL when there are no more names corresponding to an occupation. Input Format The OCCUPATIONS table is described as follows: Occupation will only…