T
Tschuß
Hi All,
The query I try to make is really difficult for me. I try to don't
make it with a personnal function but I'm not sure that is possible.
I have a Table with the following data (nb: format date dd/mm/yyyy)
Contract Number Start End
00001 01/01/2005 02/05/2008
00002 01/03/2004 21/08/2007
00003 01/03/2003 21/10/2007
00004 07/05/2003 21/11/2007
00005 01/12/2007 21/10/2010
I want to count how many contracts are activ for each month of 2007
So the result should be
Month Count
July 4
August 4
September 3 (contract 00002 is finished)
October 3
November 2 (contract 00003 is finished)
December 2 (contract 00004 is finished and 00005 is now activ)
Is there a query able to calculate this ?
The query I try to make is really difficult for me. I try to don't
make it with a personnal function but I'm not sure that is possible.
I have a Table with the following data (nb: format date dd/mm/yyyy)
Contract Number Start End
00001 01/01/2005 02/05/2008
00002 01/03/2004 21/08/2007
00003 01/03/2003 21/10/2007
00004 07/05/2003 21/11/2007
00005 01/12/2007 21/10/2010
I want to count how many contracts are activ for each month of 2007
So the result should be
Month Count
July 4
August 4
September 3 (contract 00002 is finished)
October 3
November 2 (contract 00003 is finished)
December 2 (contract 00004 is finished and 00005 is now activ)
Is there a query able to calculate this ?