Re: [SQL] Looks are important

2003-11-13 Thread Louise Cofield
-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of George WeaverSent: Wednesday, November 12, 2003 8:15 PMTo: Josh Berkus; [EMAIL PROTECTED]; Louise CofieldSubject: Re: [SQL] Looks are important Hi Louise, Josh,   Thanks for the suggestions.   What I'm trying t

Re: [SQL] Looks are important

2003-11-13 Thread George Weaver
TECTED]>; "Louise Cofield" <[EMAIL PROTECTED]> Sent: Wednesday, November 12, 2003 9:31 PM Subject: Re: [SQL] Looks are important > "George Weaver" <[EMAIL PROTECTED]> writes: > > ... the ' 's are not quite the same width as= > > an ordinary

Re: [SQL] Looks are important

2003-11-12 Thread Tom Lane
"George Weaver" <[EMAIL PROTECTED]> writes: > ... the ' 's are not quite the same width as= > an ordinary number or letter. Thus the physical display length of "30 cha= > racters" (padded) can vary from row to row. The result is that the kinds do= > n't necessary line up neatly. I need to concat

Re: [SQL] Looks are important

2003-11-12 Thread George Weaver
oncatenate the two as they are being displayed as one column in a drop down combobox.   Is what I'm trying to do possible???   George - Original Message - From: Louise Cofield To: 'George Weaver' ; [EMAIL PROTECTED] Sent: Wednesday, November 12, 2003 5:19 P

Re: [SQL] Looks are important

2003-11-12 Thread Louise Cofield
Wednesday, November 12, 2003 3:12 PMTo: [EMAIL PROTECTED]Subject: [SQL] Looks are important Hi Everyone,   I am trying to concatenate two fields through a query:   SELECT RPAD(no,30,' ') || tableb.kind FROM tablea  WHERE tablea.kind = tableb.kind   The result g

Re: [SQL] Looks are important

2003-11-12 Thread Josh Berkus
George, > SELECT RPAD(no,30,' ') || tableb.kind FROM tablea > WHERE tablea.kind = tableb.kind Try SELECT RPAD(no, (35 - LENGTH(tableb.kind)), ' ') -- -Josh Berkus Aglio Database Solutions San Francisco ---(end of broadcast)--- TIP 7: don't fo

[SQL] Looks are important

2003-11-12 Thread George Weaver
Hi Everyone,   I am trying to concatenate two fields through a query:   SELECT RPAD(no,30,' ') || tableb.kind FROM tablea  WHERE tablea.kind = tableb.kind   The result gives (for example):   4595448   Green5966  Yellow106-60033