|
|
|
Forum Newbie
      
Group: General Forum Members
Last Login: Wednesday, March 27, 2013 9:58 PM
Points: 2,
Visits: 5
|
|
how about this ?
select '|'+ rtrim(ltrim(replace(replace(replace(replace(' Homer Simpson is kewl ',' ','_'),'__',''),'_ ',' '),'_',' '))) +'|' its a good thing we only have odd and even number... ;o)
|
|
|
|
|
SSC-Addicted
      
Group: General Forum Members
Last Login: 2 days ago @ 2:09 PM
Points: 480,
Visits: 1,605
|
|
| This approach was published in a solution quite early in this discussion.
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Today @ 4:58 AM
Points: 1,152,
Visits: 1,457
|
|
Stumbled across this thread with a Google search. (Amazing how all paths lead 'home'.)
The elegance of the solution to this problem in SQL is amazing. Got a warm glow when I contemplated it's beauty. That quickly vanished as I smacked myself for not having figured it out on my own.
Please don't go. The drones need you. They look up to you.
|
|
|
|