Weather Observation Station 5

  • + 1 comment

    Can we have more optimized query than below? I'd like to know if we have more optimized solution for this scenario.

    These queries are in MySQL. select city, CHAR_LENGTH(city) as lenghtofcity from station order by CHAR_LENGTH(city) asc,city asc limit 1; select city, CHAR_LENGTH(city) as lenghtofcity from station order by CHAR_LENGTH(city) desc,city desc limit 1;