I have a query to where I added a column called visits. I need it to place a 1 in the visits column. The trick is, I can only have a 1 per day per patient for the same disc. How do I have it place a one on the first record of the group. I hope this example helps show you what I need.
I need it to look at the patient, the disc, and the date, then place a 1 in the visit column on the first record of the match! The code field means nothing in this problem.
Patient Code Disc date visits
tom 971 PT 08/01 1
tom 963 PT 08/01
tom 865 OT 08/01 1
tom 866 OT 08/01
tom 867 OT 08/01
tom 767 ST 08/01 1
Thanks,
AJ
I need it to look at the patient, the disc, and the date, then place a 1 in the visit column on the first record of the match! The code field means nothing in this problem.
Patient Code Disc date visits
tom 971 PT 08/01 1
tom 963 PT 08/01
tom 865 OT 08/01 1
tom 866 OT 08/01
tom 867 OT 08/01
tom 767 ST 08/01 1
Thanks,
AJ