with A as ( select case when occupation='Doctor' then name end as Doctor, case when occupation='Professor' then name end as Professor, case when occupation='Singer' then name end as Singer, case when occupation='Actor' then name end as Actor, row_number() over(partition by OCCUPATION order by name) as B from OCCUPATIONS) select min(Doctor),min(Professor),min(Singer),min(Actor)from A group by B;
-
Notifications
You must be signed in to change notification settings - Fork 0
imranansari9836/OCCUPATIONS-
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
About
OCCUPATIONS SQL SOLUTION
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published