split a string and count
555898May 16 2007 — edited May 17 2007Hi
I need to split one columns data ( which is a varcha2 string seperated by a colon)
and then list the data individually allong with a count of its instances.
ID data
1 E2121:B2121:R5421
2 E2121:B2121:R5421E:2121
From this I want
Data Count
E2121 3
B2121 2
R5421 2
There can be varied number of items in the data column (somtimes no data) and i can do this sql or plsql
thanks peoples