I'm doing some research in a MySQL database where some data is stored as XML. I already managed to find the string I was searching for:
select * from foo where Concat(foo) like '%bar%';
Now I'm trying to find only entries where "bar" appears 2 times. In the table where I'm searching "bar" always appears once so I want to find the entries with at least 2x "bar".
Can you give me some advice?