Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract and Generate table with one

Status
Not open for further replies.

qslx101

Technical User
Jan 4, 2004
2
0
0
PT
Extract and Generate table with one word per record

Hello!
I need help!

Table A is populated with frases in each record. I wish to generate table B with all words from table A, but each word must be inserted in new line of table B. This should be done for all records of table A.

Is there a way to do that ?

I appreciate any help. Thank you very much.



 
What about duplicate words that may be created in TableB. Meaning if one record in TableA has the phrase "Some Like It Hot" and another record has the phrase "Hot Potatoe". Parsing the records from TableA would produce 2 records in TableB with the word "Hot".

Besides that issue, yes you can get this task accomplished by using a loop, ie. WHILE operation, with the use of the verbs SUBSTRING and probably PATINDEX.


J. Kusch
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top