Skip to content
Advertisement

Search multiple keyword values in a string

I’ve a table name keywordsTable from where I need to select keywords and need to find the count, how many times they were mentioned in another table named dataTable.

Here’s some dummy data of keywordsTable:

And here’s some dummy data of dataTable

Here’s what I’ve tried so far.

But I’m getting this error:

Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.

Advertisement

Answer

The like operator doesn’t work in the way you are trying to use it. Instead try a join e.g.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement