- Published on
Hackerrank - Weather Observation Station 5 solution
- Authors
- Name
- Imran Pollob
- Website
- @pollmix
Solution one:
SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY) DESC LIMIT 1;
Solution two:
SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY) LIMIT 1;