I have a table called Resume with columns in Text, Word and PDF format. I enabled Full Text Search on the table and able to search the keyword through three columns and also able to rank the profile according to the keyword search .. Used below query snippet for the same:SELECT ct.[KEY], ct.[RANK], br.ProfileID ,br.TextVersion, k.KeyWordNameFROM CONTAINSTABLE( dbo.tblResumeTag, TextVersion , @SearchPhrase) as ct INNER JOIN dbo.tblResumeTag ON ct.[KEY] = br.IDINNER JOIN dbo.tblKeywords kON br.TextVersion LIKE '%' + k.KeyWordName + '%'AND k.KeyWordName LIKE '%' + @SearchPhrase + '%'ORDER BY ct.[RANK] DESCNow I want show the occurence(Count ) of the @search phrase in Textversion col, which I am struggling to return the exact count. Any suggestions will be helpful.Thank you
↧