X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 439C4D1B4D4 for ; Thu, 18 Dec 2003 12:30:57 +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 10620-03 for ; Thu, 18 Dec 2003 08:30:29 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by svr1.postgresql.org (Postfix) with ESMTP id A7CB7D1B4A3 for ; Thu, 18 Dec 2003 08:30:26 -0400 (AST) Received: from news.hub.org (news.hub.org [200.46.204.72]) by news.hub.org (8.12.9/8.12.9) with ESMTP id hBICUPU6080183 for ; Thu, 18 Dec 2003 12:30:25 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id hBICLYhk063644 for pgsql-sql@postgresql.org; Thu, 18 Dec 2003 12:21:34 GMT From: teknokrat X-Newsgroups: comp.databases.postgresql.sql Subject: how do i get differences between rows Date: Thu, 18 Dec 2003 12:21:35 +0000 Organization: Hub.Org Networking Services Lines: 6 Message-ID: Reply-To: teknokrat@yahoo.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@news.hub.org User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0+) Gecko/20020518 X-Accept-Language: en, en-us, ko To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200312/147 X-Sequence-Number: 16313 I am after an sql query that can give the differnces between consecutive timestamp values in the resultset. anyone know how to do this? thanks