Weather Observation Station 5

  • + 1 comment

    Yes, when you type:

    SELECT CITY, CHAR_LENGH(CITY) FROM STATION
    

    You mentioned two columns: CITY (1) and CHAR_LENGTH (2)

    So, when you type:

    SELECT CITY, CHAR_LENGTH(CITY) FROM STATION ORDER BY 2, 1
    

    You're saying: order first by CHAR_LENGTH (2) and after that take this results and order by CITY (1)