Last active
December 17, 2015 19:19
-
-
Save mark-cooper/5659473 to your computer and use it in GitHub Desktop.
Evergreen: quick dupe isbn lookup
This file contains 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
-- SHOW EVERGREEN DATABASE IDS | |
-- WHERE 020 'a' value appears more than once | |
select distinct value as isbn, record | |
from metabib.real_full_rec | |
where value in | |
( | |
-- get duplicate isbns | |
select value as isbn | |
from metabib.real_full_rec | |
where tag = '020' and subfield = 'a' | |
group by isbn | |
having count(id) > 1 | |
) | |
order by isbn, record; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment