We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Weather Observation Station 5
Weather Observation Station 5
Sort by
recency
|
6638 Discussions
|
Please Login in order to post a comment
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;
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;
(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)
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;
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.