Hello,
I Have a table with the following columns: patient_id, visit_id, and visit_date. How can I write a query to get the max(visit_id) on the most recent visit date for each patient? (several visit_id could occur on the same date for the same patient)
basically, I want to end up with NO duplicate patient ID's.
Thanks.