X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id AA5B89DCA3E for ; Tue, 14 Feb 2006 23:47:04 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54469-09 for ; Tue, 14 Feb 2006 23:47:08 -0400 (AST) X-Greylist: delayed 00:07:20.262018 by SQLgrey- Received: from lisa.singtel.com (lisa.singtel.com [165.21.21.188]) by postgresql.org (Postfix) with ESMTP id 300819DC9DC for ; Tue, 14 Feb 2006 23:47:00 -0400 (AST) Received: from cohq05c.singtel.corp.root ([165.21.21.73]) by lisa.singtel.com (MOS 3.4.7-GR) with ESMTP id BBR94630; Wed, 15 Feb 2006 11:39:42 +0800 (SGT) Received: from EMHQ05B.singtel.corp.root ([10.20.2.28]) by imhq05d.singtel.corp.root with Microsoft SMTPSVC(5.0.2195.6713); Wed, 15 Feb 2006 11:39:42 +0800 X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: view of weekly data Date: Wed, 15 Feb 2006 11:39:41 +0800 Message-ID: <543CACD7FF1C4F4AB587CC0864E94EC603B5E31D@EMHQ05B.singtel.corp.root> Thread-Topic: view of weekly data Thread-Index: AcYx4XR3C589eAw8TUGIldFMkL9w4w== From: "Ding Xiangguang" To: X-OriginalArrivalTime: 15 Feb 2006 03:39:42.0263 (UTC) FILETIME=[74BDB470:01C631E1] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.919 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44] X-Spam-Score: 1.919 X-Spam-Level: * X-Archive-Number: 200602/229 X-Sequence-Number: 24239 Hi, friend, Suppose there is table of daily transaction data with 5 fields, time(date), open(float8), high(float8), low(float8), close(float8) Is it possible to create a view of weekly data, i.e. open is the first = day'open, high is the highest of the week, low is the lowest of the = week, close is the last day's close. Thank you.