pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Frank Morton <fmorton@base2inc.com>
To: pgsql-sql@postgresql.org
Subject: sort text field numerically
Date: Tue, 14 May 2002 07:23:53 -0500
Message-ID: <020101c1fb42$3665f770$8455e5ce@edison> (raw)
References: <1713675304.1021384181@andromede.reaumur.absolight.net>
	<20020514120705.DE3E91C5D@druid.net>

I have a table with a column called "weight" that
is a text field, but in this case, contains float values,
such as ".8" or "0.25". Might also be null.

How can I sort them in numeric order instead of
textual order? Thanks.





view thread (2+ messages)  latest in thread

Message-ID: <020101c1fb42$3665f770$8455e5ce@edison>
Permalink:  ../020101c1fb42$3665f770$8455e5ce@edison/
Also on:    postgresql.org/message-id/020101c1fb42$3665f770$8455e5ce@edison

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: fmorton@base2inc.com
  Subject: Re: sort text field numerically
  In-Reply-To: <020101c1fb42$3665f770$8455e5ce@edison>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox