You are viewing a single comment's thread. Return to all comments →
select top 1 city,len(city) from station order by len(city),city ;select top 1 city,len(city) from station order by len(city) desc,city asc ;
It worked for me in sqlserver.
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 →
select top 1 city,len(city) from station order by len(city),city ;select top 1 city,len(city) from station order by len(city) desc,city asc ;
It worked for me in sqlserver.