Created
May 10, 2012 14:46
-
-
Save spmallette/2653629 to your computer and use it in GitHub Desktop.
duplicate pubmed ids
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select dr.provider_id, dr.provider_name_first, dr.provider_name_last, | |
drid.provider_identifier_identity | |
from provider_identifier drid | |
inner join provider dr on (dr.provider_id = drid.provider_id) | |
where dr.project_id = 38 and drid.identifier_type_id = 7 and drid.provider_identifier_identity in ( | |
select drid.provider_identifier_identity | |
from provider dr | |
inner join provider_identifier drid on (drid.provider_id = dr.provider_id) | |
where project_id = 38 and drid.identifier_type_id = 7 | |
group by drid.provider_identifier_identity | |
having count(drid.provider_identifier_identity) > 1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment