Heya, getting back into utilising Access, and have searched this forum finding kind-of related answers but no real definitive solution...
I have a table with the following fields:
[Org] [UN] [ADMDATE] [SEPDATE]
23 001 28/03/04 29/03/04
23 001 01/02/04 03/02/04
23 001 20/02/04 22/02/04
23 001 30/03/04 31/03/04
24 001 xxx
24 001 xxx
23 001 xxx
23 002 xxx
Where there are multiple ORG and UN unique combinations...
I need a query that will output the number of duplicates for each unique [Org, UN] that fall within a 28day period (ie where the corresponding admdate from previous sepdate is within 28 days) ..
So for above example it would give the following output:
[org] [ur] [count]
23 001 2
as for Org 23 and UR 001 there are 2 records:
[org] [ur] [admdate] [sepdate]
23 001 01/02/04 03/02/04
23 001 20/02/04 22/02/04
23 001 28/03/04 29/03/04
23 001 30/03/04 31/03/04
that have their admdate fall within 28 days of previous sepdate ... Can anyone help??
I have a table with the following fields:
[Org] [UN] [ADMDATE] [SEPDATE]
23 001 28/03/04 29/03/04
23 001 01/02/04 03/02/04
23 001 20/02/04 22/02/04
23 001 30/03/04 31/03/04
24 001 xxx
24 001 xxx
23 001 xxx
23 002 xxx
Where there are multiple ORG and UN unique combinations...
I need a query that will output the number of duplicates for each unique [Org, UN] that fall within a 28day period (ie where the corresponding admdate from previous sepdate is within 28 days) ..
So for above example it would give the following output:
[org] [ur] [count]
23 001 2
as for Org 23 and UR 001 there are 2 records:
[org] [ur] [admdate] [sepdate]
23 001 01/02/04 03/02/04
23 001 20/02/04 22/02/04
23 001 28/03/04 29/03/04
23 001 30/03/04 31/03/04
that have their admdate fall within 28 days of previous sepdate ... Can anyone help??