Need help for complex data sort SQL Server

后端 未结 2 1243
广开言路
广开言路 2021-01-24 03:06

I need help for complex data sort from database. Suppose my data stored in table like this:

Description
--------------
JCB Excavator - ECU P/N: 728/35700
Geo Pri         


        
2条回答
  •  抹茶落季
    2021-01-24 03:37

    1. Write a function to tokenize a string into a table of words. eg: How do I split a string so I can access item x?
    2. Apply this function to the search string and the description table
    3. Join the two results with cross apply; group the results, count and sort.

提交回复
热议问题