Have two tables, table 1 with columns W_ID and word
. Table 2 with column N_ID and note
. Have to list all the NID
where words found in table 1 word
column contains in Note
column (easy part) and also list those words in another column without duplicating the N_ID
. Which means using STUFF
to concatenate all the words
found in Note
column for that particular N_ID
. I tried using
FULL TEXT INDEX using CONTAIN
But it only allows to search for one word at a time. Any suggestions how I can use a while loop
to achieve this.