I have a field called client_label.
And i want to group the values by first 4 characters of the results.
Eg: client_label values are "jdbc-8.0", "jdbc-8.1","MCXX-9.0", "Logs-2.0", "Logs-2.1" and so on.....
So, i want a aggregate result as follows for the query : substring(client_label, 1,4) *
client_label | count
jdbc | 2
MCXX | 1
Logs | 2
Do we have any such function?
Thanks,
Raj