I am trying to view users who accessed over 15 clients that are not within their caseload in 1 day.
I am selecting the access.USERID, access.date, access.patid, access.reason.
I am grouping on access.USERID, my second group is on access.date. In the details i am displaying the PATID and the access.reason
I am also doing a distinct count on PATID for each date. However i need to only see the records when a USERID has accessed over 15 distinct PATID'S in a day.
Hope that clarifies
Thanks