pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Nacef LABIDI <nacef.l@gmail.com>
To: pgsql-sql@postgresql.org
Subject: First day of month, last day of month
Date: Thu, 24 Apr 2008 14:59:47 +0200
Message-ID: <f16f7ea00804240559y6694c19fx102e57ea4455b07d@mail.gmail.com> (raw)

Hi all,

I want to select data from a table according to a date column in my table. I
want to select all the rows which have date in the current month. So is
there a way to get from the actual date the first day and the last day of
the month or is there a better method to retrieve all the rows with dates in
the current month.

Thanks to all

view thread (21+ messages)  latest in thread

Message-ID: <f16f7ea00804240559y6694c19fx102e57ea4455b07d@mail.gmail.com>
Permalink:  ../f16f7ea00804240559y6694c19fx102e57ea4455b07d@mail.gmail.com/
Also on:    postgresql.org/message-id/f16f7ea00804240559y6694c19fx102e57ea4455b07d@mail.gmail.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: nacef.l@gmail.com
  Subject: Re: First day of month, last day of month
  In-Reply-To: <f16f7ea00804240559y6694c19fx102e57ea4455b07d@mail.gmail.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