Skip site navigation (1) Skip section navigation (2)

Re: Select data for current week only

From: Edwin Plauchu <pianodaemon(at)gmail(dot)com>
To: BlackMage <dsd7872(at)uncw(dot)edu>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Select data for current week only
Date: 2009-08-27 18:37:38
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-general
Postgresql has these functions for
formatting data time

2009/8/27 BlackMage <dsd7872(at)uncw(dot)edu>

> Hey all,
> I've been trying to figure this problem out with just using sql but I'm not
> sure how too. I have a table that holds events for each week but I only
> want
> to select events happening for the current week(Mon-Sun). So can anyone
> help
> me out with this just using sql? I've accomplished it sorta using php but
> only within the current 7 day range(example Thursday-Thursday) but not by
> the week.
> The field I am using for sorting is a Date type with the format yyyy-mm-dd
> hh:mm:ss .
> --
> View this message in context:
> Sent from the PostgreSQL - general mailing list archive at
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:

In response to


pgsql-general by date

Next:From: Edwin PlauchuDate: 2009-08-27 18:39:39
Subject: Re: Select data for current week only
Previous:From: Thomas KellererDate: 2009-08-27 18:36:45
Subject: Re: Select data for current week only

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group