pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Caleb Simonyi-Gindele <csg@bordervet.ca>
To: pgsql-sql@postgresql.org
Subject: Grouping by week
Date: Fri, 06 Aug 2004 15:29:10 -0600
Message-ID: <000001c47bfc$69d79e50$c201a8c0@borderveygqj37> (raw)
In-Reply-To: <d633e7e0.0408060602.3cd362c8@posting.google.com>

I'm using 

SELECT EXTRACT(WEEK FROM trans_date), SUM(tran_amount) ... GROUP BY
trans_date 

and it is being used to group sales results by week. It works really well. 

What I'm wondering is if I can shift the week from a Mon-Sun
articulation(default with Postgre) to a Sun-Sat sequence. I need it that way
in order to comply with a legacy stats system.

Thanks,
Caleb





view thread (3+ messages)  latest in thread

Message-ID: <000001c47bfc$69d79e50$c201a8c0@borderveygqj37>
Permalink:  ../000001c47bfc$69d79e50$c201a8c0@borderveygqj37/
Also on:    postgresql.org/message-id/000001c47bfc$69d79e50$c201a8c0@borderveygqj37

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: csg@bordervet.ca
  Subject: Re: Grouping by week
  In-Reply-To: <000001c47bfc$69d79e50$c201a8c0@borderveygqj37>

* 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