Last active
May 2, 2019 07:03
-
-
Save Nader93/dcbd73e8ee7faa6b2905f463de9fe7fd to your computer and use it in GitHub Desktop.
The PADS hackerrank solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select concat(name,"(",left(OCCUPATION,1),")") | |
from OCCUPATIONS | |
order by name asc; | |
select concat("There are a total of"," ",count(OCCUPATION)," ",LOWER(OCCUPATION),"s",".") | |
from OCCUPATIONS | |
group by OCCUPATION | |
order by count(OCCUPATION),OCCUPATION; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment