evergreen-reports:ill_stat_reports
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
evergreen-reports:ill_stat_reports [2010/06/08 12:25] – terlaga | evergreen-reports:ill_stat_reports [2011/03/08 22:07] (current) – removed bshum | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Interlibrary Loan Stats ====== | ||
- | |||
- | ===== Monthly Interlibrary Loan Stats by Circulating Library ===== | ||
- | |||
- | |||
- | **Submission Notes:** | ||
- | This report was submitted on 6/8/10 by Amy Terlaga of Bibliomation, | ||
- | |||
- | **Version**: | ||
- | **Data Sources Used**: | ||
- | **Running Tips/ | ||
- | |||
- | You will need to change **ORG** in both parts of the query to the shortname of the organizational unit in question. | ||
- | -------------------------------------------------------------- | ||
- | |||
- | SELECT aou.name AS " | ||
- | FROM action.circulation acirc | ||
- | INNER JOIN actor.org_unit aou ON acirc.circ_lib = aou.id | ||
- | INNER JOIN asset.copy ac ON acirc.target_copy = ac.id | ||
- | INNER JOIN asset.call_number acn ON ac.call_number = acn.id | ||
- | INNER JOIN asset.copy_location acl ON ac.location = acl.id | ||
- | INNER JOIN actor.org_unit aou2 ON aou2.id = acl.owning_lib | ||
- | WHERE acirc.circ_lib != acn.owning_lib AND aou.shortname = **' | ||
- | AND acirc.desk_renewal IS FALSE AND acirc.opac_renewal IS FALSE AND acirc.phone_renewal IS FALSE AND ac.call_number != ' | ||
- | GROUP by aou.name, aou2.name, acl.name | ||
- | |||
- | UNION | ||
- | |||
- | SELECT 'ZZZ Total' AS " | ||
- | FROM action.circulation acirc | ||
- | INNER JOIN actor.org_unit aou ON acirc.circ_lib = aou.id | ||
- | INNER JOIN asset.copy ac ON acirc.target_copy = ac.id | ||
- | INNER JOIN asset.call_number acn ON ac.call_number = acn.id | ||
- | INNER JOIN asset.copy_location acl ON ac.location = acl.id | ||
- | INNER JOIN actor.org_unit aou2 ON aou2.id = acl.owning_lib | ||
- | WHERE acirc.circ_lib != acn.owning_lib AND aou.shortname = **' | ||
- | AND acirc.desk_renewal IS FALSE AND acirc.opac_renewal IS FALSE AND acirc.phone_renewal IS FALSE AND ac.call_number != ' | ||
- | |||
- | ORDER BY 1, 2, 3; |
evergreen-reports/ill_stat_reports.1276014307.txt.gz · Last modified: 2022/02/10 13:33 (external edit)