Sort by

recency

|

5383 Discussions

|

  • + 0 comments

    My solution:

    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);

  • + 0 comments

    MySQL Server

    SELECT CONCAT(Name, '(', LEFT(Occupation, 1), ')') AS Result FROM Occupations UNION ALL SELECT CONCAT('There are a total of ', COUNT(*), ' ', LOWER(Occupation), 's.') AS Result FROM Occupations GROUP BY Occupation ORDER BY Result;

  • + 0 comments

    select concat(name, "(", left(occupation,1), ")" from occupations order by name;

    select concat("There are a total of", " ", count(*), " ", lower(occupation), "s", ".") from occupations group by occupation order by case when occupation = 'doctor' then 1 when occupation = 'actor' then 2 when occupation = 'singer' then 3 else 4 end ASC

  • + 0 comments

    Hope this solution helps you. Please Like if it helps

    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) ASC, Occupation;

  • + 0 comments

    select concat(name,"(",left(Occupation,1),")") from occupations order by name;

    select concat("There are a total of"," ",count()," ",lower(occupation),"s.") from occupations group by occupation order by count(),Occupation;