Weather Observation Station 5

  • + 0 comments

    with base as ( select city, LENGTH(city) as size, row_number() over (partition by LENGTH(city) order by city) as row_id
    from station where LENGTH(city) = (select max(LENGTH(city)) from station) or LENGTH(city) = (select min(LENGTH(city)) from station) order by LENGTH(city) desc, city asc ) select city,size from base where row_id=1