insomnia79
Board Regular
- Joined
- Apr 12, 2006
- Messages
- 62
Hi everyone,
I am trying to put together a database that will show the number of times a person has been seen, the duration between those times and a count of how many times that person has been seen.
end result example:
Person 1 Seen on 01/04, 03/04 and .10/04
Person 2 seen on 02/04, 05/4
data example:
person 1, 01/04, abc123
person 1, 03/04, abc123
person 2, 02/04 qwe456
person 1, 10/04, abc123
person 2, 0504, qwe456
I have amongst other things the following fields:-
Person surname
person first name
date seen on
persons postcode
What I am attemptiing to do is to limit the Postcodes down to just those where there is more then one recorded value and put teh results in a query.
Next I attempted to reduce the number of surnames to where there was 2 or more of the same and put the results into a query.
Finally I matched up the postcode to the postcode field in teh original table, and did the same with the person surname.
This does sort of work, though I am geting a lot of duplicate entries in teh original table where the persons surname, firstname, date and postcode are all teh same (this is duplication of the entire row for that person, not such those fields mentioned above).
Am I going about this the right way?
How can I lose all records that are identical (duplicated), and then use what is left over to compile a report that will then identify reguler persons over time?
A pointer in the right direction would be ample information, I am not looking for anyone to do this for me!!
Many thanks.
P
I am trying to put together a database that will show the number of times a person has been seen, the duration between those times and a count of how many times that person has been seen.
end result example:
Person 1 Seen on 01/04, 03/04 and .10/04
Person 2 seen on 02/04, 05/4
data example:
person 1, 01/04, abc123
person 1, 03/04, abc123
person 2, 02/04 qwe456
person 1, 10/04, abc123
person 2, 0504, qwe456
I have amongst other things the following fields:-
Person surname
person first name
date seen on
persons postcode
What I am attemptiing to do is to limit the Postcodes down to just those where there is more then one recorded value and put teh results in a query.
Next I attempted to reduce the number of surnames to where there was 2 or more of the same and put the results into a query.
Finally I matched up the postcode to the postcode field in teh original table, and did the same with the person surname.
This does sort of work, though I am geting a lot of duplicate entries in teh original table where the persons surname, firstname, date and postcode are all teh same (this is duplication of the entire row for that person, not such those fields mentioned above).
Am I going about this the right way?
How can I lose all records that are identical (duplicated), and then use what is left over to compile a report that will then identify reguler persons over time?
A pointer in the right direction would be ample information, I am not looking for anyone to do this for me!!
Many thanks.
P