evergreen-reports:hold_reports
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| evergreen-reports:hold_reports [2010/05/19 14:51] – terlaga | evergreen-reports:hold_reports [2011/03/08 22:05] (current) – removed bshum | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Hold Reports ====== | ||
| - | ===== Requests (Holds) Purchase Alert Report ===== | ||
| - | **Submission Notes:** | ||
| - | This report was submitted on 5/19/10 by Amy Terlaga of Bibliomation, | ||
| - | It was originally created by Dan Scott of Laurentian University. | ||
| - | **Version**: | ||
| - | **Data Sources Used**: | ||
| - | **Running Tips/ | ||
| - | |||
| - | The report here is shown with number of requests greater than 5. You can change the 5 to whatever value you desired | ||
| - | **- HAVING count(all_holds.bib_id) > 5** | ||
| - | --------------------------- | ||
| - | |||
| - | | ||
| - | FROM (( SELECT hold_request.target, | ||
| - | FROM action.hold_request | ||
| - | WHERE hold_request.hold_type = ' | ||
| - | UNION ALL | ||
| - | | ||
| - | FROM action.hold_request ahr | ||
| - | JOIN asset.call_number acn ON ahr.target = acn.id | ||
| - | JOIN biblio.record_entry bre ON acn.record = bre.id | ||
| - | WHERE ahr.hold_type = ' | ||
| - | UNION ALL | ||
| - | | ||
| - | FROM action.hold_request ahr | ||
| - | JOIN asset.copy ac ON ahr.target = ac.id | ||
| - | JOIN asset.call_number acn ON ac.call_number = acn.id | ||
| - | JOIN biblio.record_entry bre ON acn.record = bre.id | ||
| - | WHERE ahr.hold_type = ' | ||
| - | JOIN reporter.materialized_simple_record rmsr ON rmsr.id = all_holds.bib_id | ||
| - | JOIN actor.org_unit aou ON aou.id = all_holds.request_lib | ||
| - | GROUP BY aou.name, all_holds.bib_id, | ||
| - | | ||
| - | ORDER BY aou.name, count(all_holds.bib_id) DESC; | ||
evergreen-reports/hold_reports.1274295101.txt.gz · Last modified: 2022/02/10 13:33 (external edit)