Using 'LIKE' operator with a subquery that returns multiple results
问题 Newbie to SQL. Kindly help. I need to count number of records which have a pattern in one of the fields, for multiple patterns. I know how to do it for one pattern, but how do I get count of each pattern when there are multiple patterns coming from a subquery. I am using Oracle. I will try to explain with an example. SELECT count(*) FROM TableA WHERE TableA.comment LIKE '%world%'; Now this code will return the number of records which have 'world' anywhere in the TableA.comment field. My