I have about 8 patients with at least 6 to 10 records per patient. PID is different but the Patient fname, lname and state remains same . How can I filter them and extract all the records for these patients, say about 150 records?
In regular cases using pid I can get using this query select * from ptable where pid in(select pid from table2).
Thank you