MySQL basics and Database Continue.. Query the two cities in STATION with the shortest and longest CITY names, as well as their respective lengths (i.e.: number of characters in the name). If there is more than one smallest or largest city, choose the one that comes first when ordered alphabetically. Select city,length(city) from station where length(city) =(select min(length(city)) from station ) order by city limit 1; select city,length(city) from station where length(city) =(select max(length(city)) from station) order by city Query …
Category: Data Base and SQL
→
In this Category we will find how to do queries for database and we will know all about database