I have a requirement where I need to check a pipe | in the database. If found I need to play around differently.
Here how my db table looks like //Please check the | character in row 11

And if I run a group by sql command myresult will be

Which is correct.
But my requirement is to break the | in any cell and give the count accordingly. The expected result as

Can this be done using MySQL commands alone or do I need to use some php script as well?
Any snippet will be helpful.
Hope this script might help u