Re: Simple sql question - Mailing list pgsql-novice

From Valentin Gjorgjioski
Subject Re: Simple sql question
Date
Msg-id 4706C5DF.4000008@mt.net.mk
Whole thread Raw
In response to Re: Simple sql question  ("Tore Lukashaugen" <tore@lukashaugen.freeserve.co.uk>)
List pgsql-novice
On 03.10.2007 20:56 Tore Lukashaugen wrote:
> Indeed it does, thanks very much guys!
>
> ----- Original Message ----- From: "Wright, George"
> <George.Wright@infimatic.com>
> To: "Tore Lukashaugen" <tore@lukashaugen.freeserve.co.uk>;
> <pgsql-novice@postgresql.org>
> Sent: Wednesday, October 03, 2007 7:35 PM
> Subject: Re: [NOVICE] Simple sql question
>
>
> select cast (col1 as float) / cast (col2 as float) from test;
>
quick and dirty ...
select col1 / (col2+0.0) from test;

gives 0.5

pgsql-novice by date:

Previous
From: "Lonni J Friedman"
Date:
Subject: timestamp interval issue
Next
From: Valentin Gjorgjioski
Date:
Subject: Re: timestamp interval issue