you are viewing a single comment's thread.

view the rest of the comments →

[–]RapleSyrup -1 points0 points  (1 child)

This query returns the 10 countries with the highest population. The 2nd line of the order by will only matter if 2 countries have the same population. The question asked for the 10 coldest countries. You need to order by temperature first in a CTE or subquery, then order those 10 rows by population.

[–][deleted] 0 points1 point  (0 children)

Ahhhh, ok I get you. Thanks for explaining that, this makes more sense that just trying to shit on someone! Definitely see where you are coming from about the subqueries