pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ding Xiangguang <Xiangguang@singtel.com>
To: pgsql-sql@postgresql.org
Subject: view of weekly data
Date: Wed, 15 Feb 2006 11:39:41 +0800
Message-ID: <543CACD7FF1C4F4AB587CC0864E94EC603B5E31D@EMHQ05B.singtel.corp.root> (raw)

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.



view thread (2+ messages)  latest in thread

Message-ID: <543CACD7FF1C4F4AB587CC0864E94EC603B5E31D@EMHQ05B.singtel.corp.root>
Permalink:  ../543CACD7FF1C4F4AB587CC0864E94EC603B5E31D@EMHQ05B.singtel.corp.root/
Also on:    postgresql.org/message-id/543CACD7FF1C4F4AB587CC0864E94EC603B5E31D@EMHQ05B.singtel.corp.root

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: Xiangguang@singtel.com
  Subject: Re: view of weekly data
  In-Reply-To: <543CACD7FF1C4F4AB587CC0864E94EC603B5E31D@EMHQ05B.singtel.corp.root>
  References: <543CACD7FF1C4F4AB587CC0864E94EC603B5E31D@EMHQ05B.singtel.corp.root>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox