|
1) Was one field, not multiples.
2) I would avoid using the || and use concat instead. The vertical bars
play heck with some CCSID's.
Rob Berendt
--
"All creatures will make merry... under pain of death."
-Ming the Merciless (Flash Gordon)
"Ken Slaugh" <ken.slaugh@xxxxxxxxxx>
Sent by: midrange-l-bounces@xxxxxxxxxxxx
01/05/2004 08:37 PM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To
"'Midrange Systems Technical Discussion'" <midrange-l@xxxxxxxxxxxx>
cc
Fax to
Subject
RE: how to "squeeze" a field of spaces
You can 'squeeze' the fields with 'concatenation'
rTrim(Field1) || rTrim(' ' || Field2) || ... AS NewFullName
HTH,
Ken Slaugh (707) 795-1512 x118
Chouinard & Myhre, Inc.
http://www.cm-inc.com/
-----Original Message-----
From: midrange-l-bounces+ken.slaugh=cm-inc.com@xxxxxxxxxxxx
[mailto:midrange-l-bounces+ken.slaugh=cm-inc.com@xxxxxxxxxxxx] On Behalf
Of
Stone, Joel
Sent: Monday, January 05, 2004 4:35 PM
To: 'Midrange Systems Technical Discussion'
Subject: SQL: how to "squeeze" a field of spaces
Can SQL squeeze double and triple spaces from a field to squish all words
together (with one space separating words)?
For example, change:
"John's Grocery Store" to "John's
Grocery Store"
and change:
"Home Depot Dallas branch" to "Home Depot Dallas branch"?
Thanks!
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe,
unsubscribe,
or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/midrange-l.
_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.