X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id BF5DCD1B53F for ; Wed, 12 Nov 2003 23:59:36 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 87624-09 for ; Wed, 12 Nov 2003 19:59:07 -0400 (AST) Received: from davinci.ethosmedia.com (server228.ethosmedia.com [209.128.84.228]) by svr1.postgresql.org (Postfix) with ESMTP id 5323FD1B556 for ; Wed, 12 Nov 2003 19:59:01 -0400 (AST) Received: from [66.219.92.2] (HELO temoku) by davinci.ethosmedia.com (CommuniGate Pro SMTP 4.0.2) with ESMTP id 3907702; Wed, 12 Nov 2003 15:59:29 -0800 Content-Type: text/plain; charset="iso-8859-1" From: Josh Berkus Reply-To: josh@agliodbs.com Organization: Aglio Database Solutions To: "George Weaver" , Subject: Re: Looks are important Date: Wed, 12 Nov 2003 15:56:12 -0800 User-Agent: KMail/1.4.3 References: <00ac01c3a96a$a165b290$6400a8c0@Dell4500> In-Reply-To: <00ac01c3a96a$a165b290$6400a8c0@Dell4500> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200311121556.12887.josh@agliodbs.com> X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200311/144 X-Sequence-Number: 15959 George, > SELECT RPAD(no,30,' ') || tableb.kind FROM tablea=20 > WHERE tablea.kind =3D tableb.kind Try SELECT RPAD(no, (35 - LENGTH(tableb.kind)), ' ') --=20 -Josh Berkus Aglio Database Solutions San Francisco