LeetCodeSolutions
Advertisement

2738. Count Occurrences in Text ๐Ÿ‘Ž

1
2
3
4
5
SELECT 'bull' AS word, SUM(content LIKE '% bull %') AS count
FROM Files
UNION ALL
SELECT 'bear' AS word, SUM(content LIKE '% bear %') AS count
FROM Files;
Advertisement