Re: [GENERAL] Days in month query

2005-03-31 Thread Mark Fox
dnesday, March 30, 2005 3:46 PM > To: Dann Corbit > Cc: pgsql-general@postgresql.org > Subject: Re: [GENERAL] Days in month query > > Greetings, > > Thanks Dan, but I searched for, and scoured, that page before asking > my question. It helped with some of the details, but no

Re: [GENERAL] Days in month query

2005-03-31 Thread Bruno Wolff III
On Wed, Mar 30, 2005 at 16:45:43 -0700, Mark Fox <[EMAIL PROTECTED]> wrote: > > What I want is SELECT statement that references no tables but returns > the days in a given month. I'm now thinking that I might be able to > come up with something using an IN clause and using EXTRACT, but > haven

Re: [GENERAL] Days in month query

2005-03-30 Thread Jeffrey Melloy
EXTRACT, but haven't figured it out yet. Mark On Wed, 30 Mar 2005 15:16:19 -0800, Dann Corbit <[EMAIL PROTECTED]> wrote: The online documentation has a search function. It would lead you to this: http://www.postgresql.org/docs/8.0/static/functions-datetime.html -Original Messag

Re: [GENERAL] Days in month query

2005-03-30 Thread Mike Nolan
> > What I want is SELECT statement that references no tables but returns > > the days in a given month. I'm now thinking that I might be able to > > come up with something using an IN clause and using EXTRACT, but > > haven't figured it out yet. I have a 'last_day' function (duplicating what th

Re: [GENERAL] Days in month query

2005-03-30 Thread Arthur Hoogervorst
w.postgresql.org/docs/8.0/static/functions-datetime.html > > > > -Original Message----- > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Mark Fox > > Sent: Wednesday, March 30, 2005 3:07 PM > > To: pgsql-general@postgresql.org > > Subject

Re: [GENERAL] Days in month query

2005-03-30 Thread Dann Corbit
days if month is 2. -Original Message- From: Mark Fox [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 3:46 PM To: Dann Corbit Cc: pgsql-general@postgresql.org Subject: Re: [GENERAL] Days in month query Greetings, Thanks Dan, but I searched for, and scoured, that page before a

Re: [GENERAL] Days in month query

2005-03-30 Thread Mark Fox
function. It would lead you to > this: > http://www.postgresql.org/docs/8.0/static/functions-datetime.html > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Mark Fox > Sent: Wednesday, March 30, 2005 3:07 PM > To: pgsql-general@p

Re: [GENERAL] Days in month query

2005-03-30 Thread Dann Corbit
-general@postgresql.org Subject: [GENERAL] Days in month query Greetings, This is more of an SQL question, but since each database server seems to use it's own syntax for handling dates... Is there a way to query for the days in a month? For example, querying for the days in January of this

[GENERAL] Days in month query

2005-03-30 Thread Mark Fox
Greetings, This is more of an SQL question, but since each database server seems to use it's own syntax for handling dates... Is there a way to query for the days in a month? For example, querying for the days in January of this year? Listing the days between two dates would be useful as well.