I have a database that keeps track of each visit with the following columns
- ID
- ClientID
- VisitDate
- Type
- Value
So what I am trying to do is find out the following:
- Client's first visit
- Client's last visit
- The number of weeks between the first and last visit
- The number of weeks between the last visit and the prior visit to the last (if client had multiple visits)
The reason i'm having a problem is because it is on the same column. I want this in a report so I would group it by Client and Type.
Any help is greatly appreciated.
Thank you,
John
- ID
- ClientID
- VisitDate
- Type
- Value
So what I am trying to do is find out the following:
- Client's first visit
- Client's last visit
- The number of weeks between the first and last visit
- The number of weeks between the last visit and the prior visit to the last (if client had multiple visits)
The reason i'm having a problem is because it is on the same column. I want this in a report so I would group it by Client and Type.
Any help is greatly appreciated.
Thank you,
John