Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id D94FD9FBA61 for ; Mon, 25 Jun 2007 11:54:10 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 38207-03 for ; Mon, 25 Jun 2007 11:54:03 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id BA44F9FBA3D for ; Mon, 25 Jun 2007 11:54:03 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1I2pqK-0000PE-6o for pgsql-sql@postgresql.org; Mon, 25 Jun 2007 16:47:04 +0200 Received: from pirus.securax.be ([213.16.46.130]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Jun 2007 16:47:04 +0200 Received: from milen by pirus.securax.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 25 Jun 2007 16:47:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-sql@postgresql.org From: "Milen A. Radev" Subject: Re: simple SQL question Date: Mon, 25 Jun 2007 17:38:39 +0300 Lines: 29 Message-ID: References: <467FD14F.7000302@joshuaneil.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: pirus.securax.be User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) In-Reply-To: <467FD14F.7000302@joshuaneil.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/192 X-Sequence-Number: 28682 Joshua написа: > I have a column with the following values (example below) > > 5673 > 4731 > 4462 > 5422 > 756 > 3060 > > I want the column to display the numbers as follows: > > 56.73 > 47.31 > 44.62 > 54.22 > 7.56 > 30.60 > > I have been playing around with string functions but cannot seem to > figure out a quick solution. Does anyone have any suggestions? Use "to_char(int, text)", details here - http://www.postgresql.org/docs/current/static/functions-formatting.html -- Milen A. Radev