Requirement
I need to get the unique values and the respective counts.
Sample Input
|abc|^qwef|^asdr|^zxc|^
|^abc|^zxc|
|abc|^qwef|^asdr|^zxc|^
|^abc|^zxc|^abc|^zxc
Expected output
abc 5
qwef 2
asdr 2
zxc 5
I have 1.4 million records which is the unload of one specific field(var char) from a DB2 table.
The record can have n number of values(like abc, qwef etc) the length is also not fixed.
Please suggest.