$ 0 0 If you do not care about the HHMISS (last 6 digits of your numeric_column) then you can do the same that you did in excel by using SUBSTR function and fetch only first 8 and assign the name to it and use that to group by.
If you do not care about the HHMISS (last 6 digits of your numeric_column) then you can do the same that you did in excel by using SUBSTR function and fetch only first 8 and assign the name to it and use that to group by.