Weather Observation Station 5

  • + 0 comments

    with CityLengths as ( Select City, Length(City) as City_Length from Station ), ShortestCity as ( Select City, City_Length from CityLengths where City_Length = (Select Min(Length(City)) from CityLengths) order by City asc Limit 1 ), LongestCity as( Select City, City_Length from CityLengths where City_Length = (Select Max(Length(City)) from CityLengths) order by City asc Limit 1 ) Select City, City_Length from ShortestCity Union All Select City, City_Length from LongestCity