pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: dvsangel@dodo.com.au
To: pgsql-sql@postgresql.org
Subject: Re: EASY QUESTION!!
Date: Wed, 30 Apr 2003 13:41:35 -0700
Message-ID: <200304301341.35146.josh@agliodbs.com> (raw)
In-Reply-To: <1cf4c899.0304270003.244d1ce@posting.google.com>
References: <1cf4c899.0304270003.244d1ce@posting.google.com>

DVS,

> a column in one of my tables contains dates in the format yyyy-mm-dd
> From these dates I need to find out which dates are sundays.
> can anyone help me????
> PLEASE???

SELECT extract(dow from <date field>)

I believe that 0 is sunday.

-- 
-Josh Berkus
 Aglio Database Solutions
 San Francisco




view thread (3+ messages)

Message-ID: <200304301341.35146.josh@agliodbs.com>
Permalink:  ../200304301341.35146.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200304301341.35146.josh@agliodbs.com

 · 

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: josh@agliodbs.com, dvsangel@dodo.com.au
  Subject: Re: EASY QUESTION!!
  In-Reply-To: <200304301341.35146.josh@agliodbs.com>

* 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