Counting the number of repeated phrases in a column

Поиск
Список
Период
Сортировка
От Shaozhong SHI
Тема Counting the number of repeated phrases in a column
Дата
Msg-id CA+i5Jwa5j2m4q6ARt_1U=bWz5=cRqPqqSJ38mYwaP2XF0k_WNg@mail.gmail.com
обсуждение исходный текст
Ответы Aw: Counting the number of repeated phrases in a column  (Karsten Hilbert <Karsten.Hilbert@gmx.net>)
Re: Counting the number of repeated phrases in a column  ("David G. Johnston" <david.g.johnston@gmail.com>)
Re: Counting the number of repeated phrases in a column  (Laura Smith <n5d9xq3ti233xiyif2vp@protonmail.ch>)
Re: Counting the number of repeated phrases in a column  (benj.dev@laposte.net)
Re: Counting the number of repeated phrases in a column  (Shaozhong SHI <shishaozhong@gmail.com>)
Re: Counting the number of repeated phrases in a column  (Merlin Moncure <mmoncure@gmail.com>)
Re: Counting the number of repeated phrases in a column  (Shaozhong SHI <shishaozhong@gmail.com>)
Список pgsql-general
There is a short of a function in the standard Postgres to do the following:

It is easy to count the number of occurrence of words, but it is rather difficult to count the number of occurrence of phrases.

For instance:

A cell of value:  'Hello World' means 1 occurrence a phrase.

A cell of value: 'Hello World World Hello' means no occurrence of any repeated phrase.

But, A cell of value: 'Hello World World Hello Hello World' means 2 occurrences of 'Hello World'.

'The City of London, London' also has no occurrences of any repeated phrase.

Anyone has got such a function to check out the number of occurrence of any repeated phrases?

Regards,

David

В списке pgsql-general по дате отправления:

Предыдущее
От: Rob Sargent
Дата:
Сообщение: Re: Robust ways for checking allowed values in a column
Следующее
От: Karsten Hilbert
Дата:
Сообщение: Aw: Counting the number of repeated phrases in a column