Weather Observation Station 5

  • + 1 comment

    /* mysql */ select city, length(city) from station order by 2 desc, 1 limit 1; select city, length(city) from station order by 2, 1 limit 1;

    Two separate queries, the order by clause references the select columns by number - 2 means the length(city) 1 means the city name.