I have column [Posts].[post_text] of type varchar(max), and the text in this column may have several instances of words that begin with #. So, for example, an example string would be:
#hoops #blog #sports The score is now 25-40. #NBA Please check our site for more
updates #Basket #Olympics #2016
Thanks for your support #FIBA #dunk #blog
#NBA Basketball Blog #NBA
I would like to retrieve all instances of words that begin with #, and remove any repeated values. Once I get all the values in the string, I can easily group and remove repeats, but I have no idea how to list the instances.
Thanks.