How can I split strings, which are in one table column, into separate words but those words are not always one and the same number. Sometimes string can contain 1, 2, 3 or more words. And when they are split, to be shown in columns each one of them separately. This is the query so far:
SELECT search, count(DISTINCT session_id) IPC, method
FROM table WHERE type='organic'
GROUP BY search, method
The one that needs splitting is search
and after the already generated columns to have others containing the splitted words, everyone of them in separated column.
Will be grateful if someone helps. :)