Weather Observation Station 5

Sort by

recency

|

6638 Discussions

|

  • + 0 comments

    select city,length(city) from station order by length(city), city limit 1;

    select city,length(city) from station order by length(city) desc , city limit 1;

  • + 0 comments

    This is the correct answer

    SELECT TOP 1 CITY, LEN(CITY) AS LENGTH FROM STATION ORDER BY LEN(CITY) ASC, CITY ASC;

    SELECT TOP 1 CITY, LEN(CITY) AS LENGTH FROM STATION ORDER BY LEN(CITY) DESC, CITY ASC;

  • + 1 comment

    (select a.city, length(a.city) as l1 from station a inner join (select max(length (city)) as max_len , min(length (city)) as min_len from station ) c on length(a.city) = c.max_len) union (select a.city, length(a.city) as l1 from station a inner join (select max(length (city)) as max_len , min(length (city)) as min_len from station ) c on length(a.city) = c.min_len order by a.city limit 1)

  • + 0 comments

    Select City, LENGTH(City) name_length From Station Order by LENGTH(City), City ASC Limit 1;

    Select City, LENGTH(City) name_length From Station Order by LENGTH(City) DESC, City Limit 1;

  • + 0 comments

    select CITY, length(CITY) from station order by length(CITY) desc, CITY LIMIT 1;

    select CITY, length(CITY) from station order by length(CITY), CITY LIMIT 1;

    This code worked for me.