*
I’m getting results like below
PID is repeated here, 2 rows are displaying 1 patient (john)
I have to display only 1 row for patient_name (john)
i have to display one row for patient john if he have multiple visits on the same date or any other date..
Showing one row per patient – and his/her last visit date: