• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 384
  • Last Modified:

sql in mysql to group that have the same in some digit


how can i group and count the row that have the same on digit 3-6 in this case  8502
2 Solutions
Guy Hengel [angelIII / a3]Billing EngineerCommented:
you mean:

ORDER BY SUBSTR(yourfield, 3,4)

if not, please clarify
select substring(column_name,3,4), count(*) from table_name group by substring(column_name,3,4);
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now