pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tjk@tksoft.com <tjk@tksoft.com>
To: nizomi@dnet.net.id
Cc: pgsql-sql@postgresql.org
Subject: Re: Select 'Sunday' in month ??
Date: Wed, 17 Jan 2001 17:40:23 -0800 (PST)
Message-ID: <200101180140.RAA06019@uno.tksoft.com> (raw)
In-Reply-To: <01011808283800.01195@nizomi>

E.g.

create table mytable (created datetime);
insert into mytable values ('01-01-2001');
...
insert into mytable values ('01-31-2001');

select created from mytable where date_part('dow', created) = 7 and date_part('month', created) = 1;


Troy

> 
> i want to select date in january where day='Sunday'
> 
> any idea ??
> 
> please help me
> 
> Nizomi
> 




view thread (3+ messages)  latest in thread

Message-ID: <200101180140.RAA06019@uno.tksoft.com>
Permalink:  ../200101180140.RAA06019@uno.tksoft.com/
Also on:    postgresql.org/message-id/200101180140.RAA06019@uno.tksoft.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 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: tjk@tksoft.com, nizomi@dnet.net.id
  Subject: Re: Select 'Sunday' in month ??
  In-Reply-To: <200101180140.RAA06019@uno.tksoft.com>
  References: <01011808283800.01195@nizomi> <200101180140.RAA06019@uno.tksoft.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