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.
There is something wrong in hackerank with sql snippet even after submitting right code it is showing test cases failed. dunnno why?
SELECT name || '(' || SUBSTR(occupation, 1, 1) || ')' AS formatted_name
FROM occupations
ORDER BY name ASC;
SELECT 'There are a total of ' || count(occupation) || ' ' || occupation||'.'
FROM occupations
GROUP BY occupation
ORDER BY COUNT(occupation) ASC;
The PADS
You are viewing a single comment's thread. Return to all comments →
There is something wrong in hackerank with sql snippet even after submitting right code it is showing test cases failed. dunnno why? SELECT name || '(' || SUBSTR(occupation, 1, 1) || ')' AS formatted_name FROM occupations ORDER BY name ASC;
SELECT 'There are a total of ' || count(occupation) || ' ' || occupation||'.' FROM occupations GROUP BY occupation ORDER BY COUNT(occupation) ASC;