Hi,
I have this table:
PARTNAME | PARTDES | Column1 |
---|---|---|
1050 | TAL | I want to buy a chair some text |
1050 | TAL | text 123 |
11111 | IRIS | whats up with you hellow there |
11111 | IRIS | I want ice cream |
I want to see it like this:
PARTNAME | PARTDES | Column1 |
---|---|---|
1050 | TAL | I want to buy a chair some text, text 123 |
11111 | IRIS | whats up with you hellow there , I want ice cream |
is it possible? I'm running on sql management studio v 14.0.
this is the code that creates the first table.
SELECT PART.PART, PART.PARTNAME, PART.PARTDES,
REVERSE(replace(replace(replace(replace(replace(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(PARTTEXT.TEXT, 'il,vid,p >elyts<', ''),
'ylimaf-tnof;tp0.01:ezis-tnof;mc0:nigram{', ''),
'lairA', ''), 'P< >elyts/<};', ''), ''':', ''), '>P/<;psbn&', ''), '>P/<>RB<', ''), '>ltr=rid', ''), '''', ''), '<', ''),
'>', ''), 'P', ''), '/', ''))
FROM PART, PARTTEXT
WHERE PART.PART = PARTTEXT.PART
AND PART.PARTNAME IN('1050', '11111')
AND REVERSE(replace(replace(replace(replace(replace(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(PARTTEXT.TEXT, 'il,vid,p >elyts<', ''),
'ylimaf-tnof;tp0.01:ezis-tnof;mc0:nigram{', ''),
'lairA', ''), 'P< >elyts/<};', ''), ''':', ''), '>P/<;psbn&', ''), '>P/<>RB<', ''), '>ltr=rid', ''), '''', ''), '<', ''),
'>', ''), 'P', ''), '/', '')) <> ''