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't

Re: [GENERAL] Days in month query

2005-03-31 Thread Mark Fox
, 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 not on the general approach. I'll try to restate

Re: [GENERAL] Days in month query

2005-03-30 Thread Jeffrey Melloy
://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@postgresql.org Subject: [GENERAL] Days in month query Greetings, This is more

[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.

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 year

Re: [GENERAL] Days in month query

2005-03-30 Thread Mark Fox
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@postgresql.org Subject: [GENERAL] Days in month query

Re: [GENERAL] Days in month query

2005-03-30 Thread Dann Corbit
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 asking my

Re: [GENERAL] Days in month query

2005-03-30 Thread Arthur Hoogervorst
To: pgsql-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

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 the