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
|
6547 Discussions
|
Please Login in order to post a comment
-- T-SQL
select city, len (city) as dlugosc from station where city in (select top(1) city from station order by len(city) desc, city) or city in (select top(1) city from station order by len(city) asc, city)
//Correct Answer
( SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY) ASC, CITY ASC LIMIT 1 )
UNION ALL
( SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY) DESC, CITY ASC LIMIT 1 );
//Correct Answer
( SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY) ASC, CITY ASC LIMIT 1 ) UNION ALL ( SELECT CITY, LENGTH(CITY) FROM STATION ORDER BY LENGTH(CITY) DESC, CITY ASC LIMIT 1 );
**SIMPLE LOGIC **`
`
**SIMPLE LOGIC **`
`