view of weekly data

From: "Ding Xiangguang" <Xiangguang(at)singtel(dot)com>
To: <pgsql-sql(at)postgresql(dot)org>
Subject: view of weekly data
Date: 2006-02-15 03:39:41
Message-ID: 543CACD7FF1C4F4AB587CC0864E94EC603B5E31D@EMHQ05B.singtel.corp.root
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ken Hill 2006-02-15 15:45:41 Re: Non Matching Records in Two Tables
Previous Message Ken Hill 2006-02-15 01:47:02 Re: Non Matching Records in Two Tables