In case you need both max and min from same table:
select * from (
(select city, length(city) as maxlen from station
order by maxlen desc limit 1)
union
(select city, length(city) as minlen from station
order by minlen,city limit 1))a;
Ok, I am not sure what are you using(MySQL, SLQ Server, Oracle, MS Access..)
But you can try the code below. It work in W3School example DB. Here
try this: