jpkeller55
Technical User
I am sure this is a simple question. I have the following query written and I would like to return only records where the ID number is repeated more than once
So, the current code returns something like this:
ID LAST FIRST THERAPY
123456 JONES BOB PRNV
456789 SMITH DON PRNV
456789 SMITH DON PRNH
789123 HAYES DAN PRNV
789123 HAYES DAN PRNC
I would like the query only to return records with multiples of the ID number like this:
ID LAST FIRST THERAPY
456789 SMITH DON PRNV
456789 SMITH DON PRNH
789123 HAYES DAN PRNV
789123 HAYES DAN PRNC
Thanks Jim
Code:
SELECT [21_Status_Project].ID, [21_Status_Project].LAST, [21_Status_Project].FIRST, [21_Status_Project].THERAPY_TYPE
FROM 21_Status_Project
WHERE ((([21_Status_Project].THERAPY_TYPE) Like "P*"));
So, the current code returns something like this:
ID LAST FIRST THERAPY
123456 JONES BOB PRNV
456789 SMITH DON PRNV
456789 SMITH DON PRNH
789123 HAYES DAN PRNV
789123 HAYES DAN PRNC
I would like the query only to return records with multiples of the ID number like this:
ID LAST FIRST THERAPY
456789 SMITH DON PRNV
456789 SMITH DON PRNH
789123 HAYES DAN PRNV
789123 HAYES DAN PRNC
Thanks Jim