表格分组

时间:2017-01-06 11:43:00

标签: sql-server tsql search grouping

示例:

Title                                            Date
Today there was a car accident                   Today
Accident in a particular road                    Today
Weather Report Storm in Country                  Yesterday
A storm approaching from the north of country    Today

我的想法是提供一个查询,以某种方式自动查找最常用的单词“Accident”和“Storm Country”,然后将它们组合在一起。

我认为解决方案首先应该是我阅读标题然后用文字分割标题但是如何分割多个单词以便最终我有类似的东西:

Title                                              Date
Today there was a car accident                     Today (latest)
A Storm approaching from the north of country      Today              

我想很多人会搜索这些内容,谢谢你。

0 个答案:

没有答案