G
Guest
Hello:
I have a data set like the following
PersonID EncounterDate
1 Sep 1, 04
1 Sep 4, 04
2 Aug 2, 03
2 Jan 1, 03
2 Feb 9, 04
....
I want to calculate the time interval between each two encounters for each
person.
Some people only has one interval, but some may have several intervals. Is
that possible one query can handle it or I should other methods?
Thanks in advance!
I have a data set like the following
PersonID EncounterDate
1 Sep 1, 04
1 Sep 4, 04
2 Aug 2, 03
2 Jan 1, 03
2 Feb 9, 04
....
I want to calculate the time interval between each two encounters for each
person.
Some people only has one interval, but some may have several intervals. Is
that possible one query can handle it or I should other methods?
Thanks in advance!