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

Conta i record che iniziano con lettere specifiche

Select COUNT(*),SUBSTRING(column_name,1,2) FROM table_name GROUP BY SUBSTRING(column_name,1,2)