Re: FromDate - ToDate
- From: Chad <Chad@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Dec 2007 13:37:00 -0800
sorry for the confusion everyone, below are a few more specifics.
I have a table called tblAvailability with three fields:
Property_ID
From_Date
To_Date
The from and two dates actually specify which days the property is avaiable.
FOr example:
Property_ID From_Date To_Date
Property1 1/15/2007 3/2/2007
This record specifies that Property1 is available from 1/15/2007 trhough
3/2/2007.
I would like to run a query that would group by property, by month, and sum
the number of days that property has available each month. In ths example,
the query would return:
Property_ID Month No_Days
Property1 January 17
Property1 February 28
Property1 March 2
Thanks again for any help you can provide.
Chad
"John W. Vinson" wrote:
On Wed, 26 Dec 2007 08:19:01 -0800, Chad <Chad@xxxxxxxxxxxxxxxxxxxxxxxxx>.
wrote:
I have a table that contains a FromDate field and a ToDate field. Can anyone
help me determine the best way to develope a query (or set of quesries) that
will allow me to return the number of days, by month, that is included in
this table?
Thanks in advance,
Chad
What do you mean by "number of days, by month"? the number of days in January,
the number of days in February, and then the number of days in March as three
separate values, or what?
John W. Vinson [MVP]
- Follow-Ups:
- Re: FromDate - ToDate
- From: John W . Vinson
- Re: FromDate - ToDate
- References:
- Re: FromDate - ToDate
- From: John W . Vinson
- Re: FromDate - ToDate
- Prev by Date: Re: Help in removing information from description
- Next by Date: Re: presence/absense matrix
- Previous by thread: Re: FromDate - ToDate
- Next by thread: Re: FromDate - ToDate
- Index(es):
Relevant Pages
|