Weather Observation Station 5

  • + 0 comments

    I think this is the best solution that I came up with --->

    (SELECT CITY, LENGTH(CITY) AS CITY_LEN FROM STATION ORDER BY CITY_LEN ASC, CITY ASC LIMIT 1) UNION (SELECT CITY, LENGTH(CITY) AS CITY_LEN FROM STATION ORDER BY CITY_LEN DESC, CITY ASC LIMIT 1);