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
|
5279 Discussions
|
Please Login in order to post a comment
select concat(name,'(',substring(occupation,1,1),')') from OCCUPATIONS order by name;
select concat('There are a total of ',count(occupation),' ',lower(occupation),'s.') from OCCUPATIONS group by occupation order by count(occupation),occupation;
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); This worked great
Please correct the answer. select concat(name,'('||x||')') from( select name,substring(occupation,1,1) x from occupations);
select 'There are a total of', ab, o from( select count(occupation) over(partition by occupation) ab,lower(occupation)||'s' o from occupations) order by ab ;
SELECT CONCAT(name, '(', LEFT(occupation, 1), ')') FROM Occupations ORDER BY name;
SELECT CONCAT('There are a total of ', COUNT(Occupation), ' ', LOWER(occupation), 's.') FROM Occupations GROUP BY Occupation ORDER BY COUNT(Occupation), LOWER(occupation);
I submitted the code below and the output is perfect but still it givers error.
SELECT CONCAT(Name, '(', SUBSTRING(Occupation, 1, 1), ')') AS Result FROM OCCUPATIONS
UNION ALL
SELECT CONCAT('There are a total of ', COUNT(Occupation), ' ', Occupation, 's.') AS Result FROM OCCUPATIONS GROUP BY Occupation ORDER BY Result;