If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Sybase > Text Search Within a Sentence (Possibly Verity?)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old
Registered User
 
Join Date: Nov 2010
Posts: 2
Question Text Search Within a Sentence (Possibly Verity?)

I am pretty sure there is a way to run a text search for words that are in the same sentence but can't seem to get the syntax right. I am working with Rapid SQL and trying to use a verity function "<many><sentence>(word1, word2, word3, word4)" in an SQL query.

I need to find results where all these words are in the same sentence within a large text area. So an example of what I am working with is:

Select
date,
rep_id
FROM
table1 t1,
table2 t2(this is where the text is located)
where
date between 11/1/2012 and 12/1/2012
and t1.rep_id = t2.rep_id

and this is where I stumble on looking for the keywords in t2 where word1, word2, word3, and word4 are in the text AND in the same sentence.

Any advice is greatly appreciated.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On