Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

group a column with the 1st 5 digits of it

BugsMar 9 2017 — edited Mar 10 2017

I've a column MSD in my table.

My requirement is to group the MSD with the 1st 5 digits of it having the following values & get count of each group..

 

61727
61919
61616
61161

Could someone help me with the SQL please. Thanks!!

This post has been answered by Frank Kulash on Mar 9 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2017
Added on Mar 9 2017
6 comments
418 views