Received: from email03.aon.at (WARSL401PIP5.highway.telekom.at [195.3.96.112]) by postgresql.org (8.11.3/8.11.1) with SMTP id f44EsJA19465 for ; Fri, 4 May 2001 10:54:19 -0400 (EDT) (envelope-from vecernik@aon.at) Received: (qmail 2853380 invoked from network); 4 May 2001 14:54:12 -0000 Received: from m217p016.dipool.highway.telekom.at (HELO aon.at) ([62.46.17.16]) (envelope-sender ) by qmail3.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 4 May 2001 14:54:12 -0000 Message-ID: <3AF2C133.19242DA3@aon.at> Date: Fri, 04 May 2001 16:48:19 +0200 From: Oliver Vecernik Organization: VECERNIK Datenerfassungssysteme X-Mailer: Mozilla 4.76 [de] (X11; U; Linux 2.4.0-4GB i686) X-Accept-Language: de-AT, en MIME-Version: 1.0 To: "pgsql-admin@postgresql.org" Subject: time calculations Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200105/14 X-Sequence-Number: 1344 Hi, I've got a table with two columns: one for distance in km (float4) and one for the time (interval). I'd like to calculate the speed. My problem is how to convert the intervals to decimal hours to be able to a simple: SELECT *, distance/time as speed from table; Any clues? Are there any docs (maybe I have overseen something)? Regards, Oliver