Let’s say we have following table.
UserId | Message -------|------------- 1 | Hi, have a nice day 2 | Hi, I had a nice day
I need to have all { Hi,-have-a-nice-day-I-had } words separately.
Is there any way to do that ? What if I want to export words from whole database tables ?
Similar results would be also good.
try this:In Sql server 2005 or above
SQLFIDDLE DEMO