Quantcast
Channel: Für Entwickler: SQL Server Forum
Viewing all articles
Browse latest Browse all 1772

How to find most repeated word in each row in sql query

$
0
0

I have a table in SQL-server called client below like :

prediction     |         text

0                 this is a sample sentence for sample sentence  

1                this is a simple sentence this is a simple sentence and important sentence 


now i need a query that make a column to above table that find 2 words each row and show in third column below like :

prediction     |         text                                                                   |         top terms
0                 this is a sample sentence for sample sentence                            |    simple, sentence

1                this is a simple sentence this is a simple sentence and important sentence|    important, sentence 


please help me to solve it


Viewing all articles
Browse latest Browse all 1772

Trending Articles