Weather Observation Station 5

  • + 0 comments

    with a as ( select city, len (city) ln, row_number () over (partition by len(city) order by city ) rnk from station where len(city) = (select max(len(city)) from station)
    or len(city) = (select min(len(city)) from station)) select city, ln from a where rnk = 1