We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- SQL
- Advanced Select
- The PADS
- Discussions
The PADS
The PADS
Sort by
recency
|
5383 Discussions
|
Please Login in order to post a comment
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);
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;
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
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;
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;