You are viewing a single comment's thread. Return to all comments →
-- City with the shortest name SELECT TOP 1 CITY, LEN(CITY) AS NAME_LENGTH FROM STATION ORDER BY LEN(CITY), CITY;
-- City with the longest name SELECT TOP 1 CITY, LEN(CITY) AS NAME_LENGTH FROM STATION ORDER BY LEN(CITY) DESC, CITY;
Seems like cookies are disabled on this browser, please enable them to open this website
Weather Observation Station 5
You are viewing a single comment's thread. Return to all comments →
-- City with the shortest name SELECT TOP 1 CITY, LEN(CITY) AS NAME_LENGTH FROM STATION ORDER BY LEN(CITY), CITY;
-- City with the longest name SELECT TOP 1 CITY, LEN(CITY) AS NAME_LENGTH FROM STATION ORDER BY LEN(CITY) DESC, CITY;