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
|
7265 Discussions
|
Please Login in order to post a comment
/* We find the city with the shortest name length*/ SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY) DESC, CITY ASC LIMIT 1; /And the we find the one with the longest name length/ SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY) ASC, CITY ASC LIMIT 1;
SELECT TOP 1 CITY,LEN(CITY) FROM STATION ORDER BY LEN(CITY) ASC, CITY ASC;
SELECT TOP 1 CITY,LEN(CITY) FROM STATION ORDER BY LEN(CITY) DESC, CITY DESC;
SELECT CITY, LENGTH(CITY) FROM STATION WHERE ID IN ((SELECT ID FROM STATION ORDER BY LENGTH(CITY), CITY LIMIT 1),(SELECT ID FROM STATION ORDER BY LENGTH(CITY) DESC, CITY LIMIT 1));
/* Finds smallest city name */
Select City, Length(City) From Station Order by Length(City), City ASC Limit 1;
/* Finds Longest city name*/
Select City, Length(City) From Station Order by Length(City) DESC, City ASC Limit 1;