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.
That query doesn't pass on Microsoft SQL at least, because you can't use ordinal position numbers in the GROUP BY clause. (Those only work in ORDER BY, and even then, it's a bad idea to use them.)
Msg 164, Level 15, State 1, Server WIN-ILO9GLLB9J0, Line 8
Each GROUP BY expression must contain at least one column that is not an outer reference.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Top Competitors
You are viewing a single comment's thread. Return to all comments →
That query doesn't pass on Microsoft SQL at least, because you can't use ordinal position numbers in the GROUP BY clause. (Those only work in ORDER BY, and even then, it's a bad idea to use them.)
Msg 164, Level 15, State 1, Server WIN-ILO9GLLB9J0, Line 8 Each GROUP BY expression must contain at least one column that is not an outer reference.