Mysql
 sql >> Database >  >> RDS >> Mysql

SELEZIONA DISTINTO solo i primi quattro numeri

Usa LEFT :

SELECT LEFT(code, 4) AS code, ticker FROM tbl ORDER BY code;