Hello,
I have a table called providers with the following 3 fields:
Provider ID
Cancellation Reason
Visit ID
Date
It is possible to have multiple instances of the same provider ID, cancellation reason and visit ID on the same date. I'm trying to count just 1 instance based on visit ID if there are multiple instances of the visit ID and reason on the same date. Select distinct doesn't seem to do the trick.
Could you please provide some direction?
Thank you.
I have a table called providers with the following 3 fields:
Provider ID
Cancellation Reason
Visit ID
Date
It is possible to have multiple instances of the same provider ID, cancellation reason and visit ID on the same date. I'm trying to count just 1 instance based on visit ID if there are multiple instances of the visit ID and reason on the same date. Select distinct doesn't seem to do the trick.
Could you please provide some direction?
Thank you.