The following list shows the canned report SQL queries written to run on the Metadb reporting database created by the CUL FOLIO Core Reporting Team.


PLEASE NOTE: Click on the column headings to sort the listings. For instance, you might want to sort by functional area. This might help you find what you are looking for faster.



Link to QueryFunctional AreaLast
Updated 
NameDescriptionAssignment
MCR103Collection Management12/6/24

annex_items_with_nonCirculating_loan_types

This query creates a list of items at the Annex that have a "non-circulating" permanent loan type,  excluding rare and special collections. It also finds items with an hourly loan type.jl41
MCR107Access Services6/24/24

patron_requests_by_type_and_status

This query creates a list of patron requests within a specified date range by request type and statusjl41
MCR108Access Services5/22/24

services_usage

This query provides the number of circulation transactions by service-point and transaction type, with time aggregated to date, day of week, and hour of day.jl41
MCR113YAccounting2/19/24

daily_approved_invoice_exported_yesterday

This query provides the total amount of voucher_lines per account number and per approval date for transactions exported to accounting. 
The invoice status is hardcoded as 'Paid'.

MCR113Accounting2/19/24

daily_approved_invoice_exported

This query provides the total amount of voucher_lines per account number and per approval date for transactions exported to accounting. 
The invoice status is hardcoded as 'Paid'.

MCR114YAccounting5/6/24

daily_appr_inv_vendor_yesterday

This query provide the list of invoices paid by vendor along with voucher lines details.
MCR114Accounting5/6/24

daily_appr_inv_vendor

This query provide the list of invoices paid by vendor along with voucher lines details.
MCR116Accounting2/2024

payable_inv_not_fed_notes

This query provides the total amount of voucher lines not sent to accounting (manuals) per account number with notes
MCR118Access Services6/7/24missing_in_transitThis query finds items that are still in transit after 10 days and shows requesters and designated pickup locations.jl41
MCR120YAccounting4/2024daily_appr_inv_control_yesterdayThis query provides the total amount of voucher_lines per external account number along with the approval dates. 
It includes manuals and transactions sent to accounting. The invoice status is hardcoded as 'Paid'.*/

MCR120Accounting4/2024daily_appr_inv_controlThis query provides the total amount of voucher_lines per external account number along with the approval dates. 
It includes manuals and transactions sent to accounting. The invoice status is hardcoded as 'Paid'.*/

MCR122Accounting7/25/24fund_details_summaryThis query provides fund details summaries for active funds
MCR126Access Services5/23/24

borrow_direct_interlibrary_loan_recalls

This query finds books that are on loan to BD and ILL, were recalled and are now overdue
jl41
MCR127Access Services5/23/24
Borrow_direct_interlibrary_loan_overdue_items
Provides a list of items owned by CUL and borrowed by BD/ILL patrons, that are overdue.jl41
MCR132YAccounting11/18/24

ytd_acct_bal_by_ledger_univ_acct_yesterday

This report provides the year-to-date external account cash balance along with total_expenditures, initial allocation, and net allocation. This is an accounting report used for monthly reconciliation. The "yesterday" version of the query pulls yesterday's data.slm5, ama8
MCR132Accounting11/18/24

YTD_acct_bal_by_ledger_univ_acct

This report provides the year-to-date external account cash balance along with total_expenditures, initial allocation, and net allocation. This is an accounting report used for monthly reconciliation. The "current" version of the report can be used to get the most current data in the reporting database. slm5, ama8
MCR134Collection Development7/25/24

approved_invoices_bib_data

This query provides the list of approved invoices within a date range along with vendor name, finance group name, vendor invoice number, fund details, purchase order details, language, instance subject, fund type, expense class,
LC classification, LC class, LC class number, and bibliographic format.

MCR134FAccounting1/24/25

approved_invoices_for_fbo

This is a version of the MCR134 approved invoices query using by accounting that has been modified to exclude the bibliographic data. 
Accounting approves invoices Mondays through Fridays, so it is best to run this query on Fridays if you want it to match the data in the FOLIO financial applications. 

MCR135Accounting5/8/24

sum_appr_inv_ledger_scct

This query provides the total of transaction amount by account number along with the finance ledger and finance group within a date range.
MCR139YAccounting1/21/25inv_appr_paid_diff_date_yesterdayThis query provides a list of approved invoices that have been paid at a different date.
Sometimes Folio won't allow an invoice to get paid and the invoice will only be paid at a
later day, after changes have been made.
slm5, ama8
MCR139Accounting1/21/25inv_appr_paid_diff_dateThis query provides a list of approved invoices that have been paid at a different date.
Sometimes Folio won't allow an invoice to get paid and the invoice will only be paid at a
later day, after changes have been made.
slm5, ama8
MCR140Accounting1/21/25

fbo_change_in_allocation

This report provides a list of change in allocation per date range. A negative transaction amount is for an increase in allocation and a positive amount is for a decrease in allocation.slm5,ama8
MCR141Access Services11/13/24

lost_bursared_returned

This query finds all items that were billed as lost, then bursared, and later returned. Folio marks such bills 
as "refunded fully," but in fact refunds have to be processed manually. This report allows you to identify charges 
that must get manual refunds.

MCR150Access Services12/18/24

Physical and E-reserve statistics

This query shows the physical checkouts and online clicks for items on reserve at all libraries, for the semester indicated. 
MCR154Cataloging1/21/25

titles_held_by_loc_format_language_subject

This query shows titles held with format, languagge and subject info. Select a location. Also filter by language code, bibliographic format, and subject word.
MCR157Accounting10/2/24

funds_and_teams_with_expense_class

This query provides a detailed current date report of funds and teams with amounts spent, encumbered, and remaining.lm15, np55
MCR165Accounting7/25/24

funds_and_teams

This query provides a current date report of funds and teams with amounts spent, encumbered, and remaining.
MCR170Collection Management12/6/24

item_status_in_process 

This query finds In Process item status books that appear to be fully cataloged and should be checked in the stacks to see if they have arrived at the library without the status being updated (record cleanup). 

MCR171Collection Development7/15/24

BD_ILL_loans_to_Cornell_patrons

Finds the items borrowed through ILL and BD, shows the patron group and dept when available, and shows the number of days on loan. Lists title, patron group and department (where available) for items borrowed from other universities on Borrow Direct and Interlibrary Loan.jl41
MCR172Collection Development5/22/25

ILL_BD_items_lent_to_others

This query provides a list of items owned by CUL which have been loaned to other universities on BD and ILL.jl41
MCR174AAccess Services6/24/24

ILL_BD_counts_loaned_to_others

BD/ILL loans and renewals counts of items loaned BY CUL to others (CUL is LENDER)
jl41
MCR174BAccess Services6/24/24

ILL_BD_counts_borrowed_by_CUL

ILL and BD counts of items where CUL is the BORROWER
jl41
MCR175Accounting7/25/24

split_funds

This query shows split fund payments for all finance groups. 
MCR176Collection Management12/6/24

annex_items_to_be_accessioned

This query is used by the Annex staff for checking lists of items to be accessioned against holdings already at the Annex, to prevent duplication
MCR180Annual Data Collection1/15/25

773_and_899_aggr_counts_adc

For the annual data collection, this query get counts of e-aggregators and other e-collections coded in 773 and 899 fields, to help track large changes in e-counts from year to year if needed. It merges the 773 and 899 counts, and sorts the counts in descending order. Excludes PDA/DDA titles unpurchased.lm15, np55
MCR181Collection Development12/6/24

circ_counts_by_instanceHRID_for_Voyager_and_Folio

This report returns circ counts from both Voyager and Folio for an individual instance HRID, as selected in the parameters. Title, location, and number of items are also included.  
MCR183Access Services6/7/24

laptop_circ_counts

This query counts laptop circs and renewals by library, date, loan type, and laptop type (Mac or PC).  Also
counts how many laptops were used on any given day.
jl41
MCR184Access Services6/24/24

loans_and_renewals

Loans and Renewals by fiscal year. This query uses the loans_renewal_dates from local_shared. Change to folio_derived once the derived table is fixed.jl41
MCR184BAnnual Data Collection9/12/24

orig_locs_for_phys_collections_no_library_charges

For counts in MCR184 with locations as "removed locations" or "no library," use this report to see what the locations now retired originally were.lm15, jl41
MCR185Collection Management6/10/24Ceased_cancelled_serials_at_holdings_levelThis query finds ceased or cancelled titles at the holdings level for a specified owning library and LC class, and shows if there are holdings at the Annex. Results will include any title (of any holdings type) that has a holdings receipt status or holdings note that indicates the title is no longer received or is ceased or cancelled.jl41
MCR186Collection Management6/10/24ceased_cancelled_serials_at_item_levelThis query finds ceased or cancelled titles at the item level, for a specified owning library and LC class, and shows if there are holdings at the Annex. Results will include any title (of any holdings type) that has a holdings receipt status or holdings note that indicates the title is no longer received or is ceased or cancelled.jl41
MCR190Access Services11/19/24expired_patrons_with_open_finesThis query finds expired patrons with open fines. This query references the CIT file of patrons, Please check which schema this file resides in and make changes as needed to the schema name. jl41
MCR192Annual data collection11/12/24

LEGACY volumes_withdrawn_or_transferred 

See MCR422 for latest version

This query extracts holdings administrative note data to allow counts of physical items withdrawn by location AND to allow the identification of transfers that go from endowed to contract units, and vice-versa. These counts are used for volumes withdrawn figures needed by the Division of Financial Services each quarter.jl41
MCR193Access Services5/8/24filled_delivery_requests This query provides a count of all contactless delivery and circulation desk pickup requests, by fiscal year. Patron group, material type, request type, and location details are included.jl41
MCR194Access Services1/29/25checkouts_and_checkins_by_service_point This query finds checkouts and checkins by month for a given service point and date range. Item records that have been deleted will show a material type name of null. Because most deleted records are equipment records, these items have been categorized as "Equipment" collection type as a best guess.
MCR195Accounting7/29/24expense_transferThis query is a customization of CR-134 (paid invoices with bib data) for the purpose of identifying expenditures that can be transferred from unrestricted funds to restricted funds.
MCR199Collection Management11/1/24serials_by_owning_library_and_annex_holdingsThis query gets serials by owning library and LC class, and shows holdings at the Annex. jl41, lm15
MCR202Collection Management7/16/24patron_purchase_requests This query finds purchase requests by fund code, location, library or fiscal year and shows requester information, number of days from request date to receipt date, and number of loans for that title (cannot get circulation information at item level)
MCR204Access Services1/06/25missing_lost_claimed_returnedThis query finds items whose status is missing, lost, or claimed returned.  Changes from the LDP query: no Voyager data included. Also, extracted the 300 field separately and the most recent discharge and discharge location are from the from folio_inventory.item__ json blob; repositioned library filter to end of query.jl41
MCR205Access Services12/4/24libraries_locations_service_points_feefine_owners This query finds libraries, locations, service points and fine owners associated with the service points. jl41
MCR206Access Services12/18/24Open fines older than X daysThis query finds open (unpaid) fines that are older than the number of days specified; can also choose an owning libdrary

MCR207Accounting2/6/25po_lines_no_expense_class This query is used to get a listing of purchase order lines with no expense class selected when the PO was created. It includes fund code, purchase order line number, workflow status, order type, order format, and title. This is pulling purchase order line information that is not tied to a transaction. slm5
MCR208Collection Management12/19/24Identifying DVDsThis query lists the DVDs in a library's collection

MCR209Collection Management12/19/24Identifying VHSThis query lists the VHS tapes ina library's collection

MCR210Collection Development11/13/23missing_lost_items_for_selectorsThis query is specifically for selectors and it shows Missing and Lost items with different fields included that are useful in making replacement decisions.jl41
MCR211Collection Management12/20/24Locations_with_item_counts_for_permanent_and_temporary_locationsThis query counts the total number of items in all locations (perm and temp locations), even if there are zero items, and includes suppressed and unsuppressed records. It was written for the Locations project, as requested by Tom Trutt.

MCR212Collection Management12/20/24Number_of_holdings_records_in_permanent_and_temporary_locationsThis query counts the total number of holdings records in all locations (perm and temp locations), even if there are zero holdings, and includes suppressed and unsuppressed records.
MCR213Finance7/9/25Current encumbrances This query finds the current encumbrances by fiscal year, fund or finance group
MCR214Annual Data Collection6/4/24

LEGACY query physical_item_counts

See MCR418-420 for new versions of counts queries

This query provides item counts of physical materials, by format type. It excludes microforms (counted separately).lm15
MCR214BAnnual Data Collecction6/10/25LEGACY physical_item_counts_incl_items_rec_but_not_yet_catalogedWith FY25, A&P uses this query every quarter to get volumes added counts for Cornell's Division of Financial 
Services.

MCR215Annual Data Collection6/4/24LEGACY instance_countsThis query provides counts of unique titles (instances) of physical items, by format type. It excludes microforms (counted separately).lm15
MCR216Annual Data Collection6/4/24LEGACY microform_countsThis query provides counts of microform titles, by format type.lm15
MCR217Annual Data Collection6/4/24LEGACY ematerial_countsThis query provides counts of ematerials, by format type. Formats are taken from 948 field, and if missing then taken from the stat code, and if both these fields are missing, formats are taken from the MARC format code. Titles with multiple codes are assinged based on the priority listed in the CASE clause.lm15
MCR217BAnnual Data Collection6/10/25HathiTrust_title_counts_to_add_to_ADC_e-countsThis query is used by A&P staff to get counts of titles CUL sent to Google to be digitized in one of the Google Books Projects, that are now fully accessible to all Cornell users.lm15/vp25
MCR218Access Services12/18/24checkouts_and_browses 
This query finds the the most recent checkouts and browses by date range, location and LC class (total checkouts and most recent checkout in Voyager and in Folio).

MCR219A

Collection Management

11/21/24shelf_list_inventory_full This query finds shelf list inventory information by library location. The full MCR219A version has more data fields than the brief  MCR219B version, which is used for manual shelf list inventory work.
MCR219BCollection Management11/21/24shelf_list_inventory_brief This query finds shelf list inventory information by library location. The full MCR219A version has more data fields than the brief  MCR219B version, which is used for manual shelf list inventory work.
MCR220Collection Development1/14/25

Voyager and Folio circ counts with parameters

This query finds total Voyager and Folio circ usage for given parameters: LC class, library, title, instance hrid and/or language.

MCR222Troubleshooting8/29/24

metadb_key_counts

This query counts instances, holdings, items, loans, srs marctab instances, srs marctab records with "001" fields, srs marctab records with "999" fields that include "i" subfields, and srs record instances on the Metadb database. 
slm5, jl41
MCR223Acquisitions1/29/24

approvals_and_firm_orders

This query finds all orders (not just approvals) showing the "bill to" and "ship to" locations in the purchase order or invoice.
MCR225Collection Development12/9/24
purchase_requests_with_days_elapsed_till_checkout 
This query finds the number of days between when a firm-ordered (one-time) fully-received item was ordered (item record created), then received at LTS, then received at the unit library and then first checked out (Folio only). If item was not discharged at the unit library upon receipt, or item did not have an "In process" status prior to discharge, time elapsed will show null. Includes bibliographic info, order info and fund information and can be limited to just requested purchases.jl41
MCR226Alumni Affairs11/6/24

funds_for_stewardship

This query was modified from CR134 to accommodate alumni affairs needs for information on stewarded funds. It provides the list of approved invoices within a date range along with primary contributor name, publisher name, publication date, publication place, vendor name, LC classification, LC class, LC class number, finance group name, vendor invoice number, fund details, purchase order details, language, instance subject, fund type, and expense class.
MCR229Collection Management11/19/24

inventory_by_call_number_range

This query gets the holdings-level inventory for a library/location/call number range and shows item count and circ count since 2015.jl41
MCR230Collection Management11/19/24

collection_inventory_by_date_range

This query finds all items in a given location or library, and shows all charges and browses within the specified date range. It Shows all record component locations, which is helpful for record cleanup.jl41
MCR231Acquisitions3/2024

lts_receiving

TS Acquisition Statistic Dashboard, LTS Receiving StoryThis report gets serials received by LTS personal, on which day it was received, with bill_to location "Law Technical Services not included", item format as "Physical, receiving status as "received", po_number, po_number prefix, order_format, ship_to location
MCR232Acquisitions3/8/24

inst_updated_date

This query pulls the updated_by_userid and the updated_date field data from the inventory instance record JSONB data array. This data is then joined to the MARC 245/a field to get the instance title and instance HRID.np55
MCR233Annual Data Collection3/12/24

locations_libraries

Creates a table in local_static consisting of locations and corresponding libraries, whether contract or endowed unit, location status (active or inactive), and whether or not to include item and instance counts from each location for annual data collection purposes.lm15, jl41
MCR238Cataloging4/10/24

get_instance_records

This report uses metadb function and gets MARC record field content for a particular subfield. After function is created it can be called by using provided call statement example at the end of the report.np55
MCR243Troubleshooting8/27/24

metadb_key_created_counts_date_series

This query counts holdings, instances, items, and srs_records, then displays each set of counts in a date series.slm5
MCR400Access Services2/12/24

calendar_settings_by_service_point_and_semester

This query displays the calendar settings for a given service point and semester. Service points using a "Universal" calendar.jl41
MCR401Batch4/10/24

clean_up_100e

This report gets 100 field subfiled "e" value to check for the wrongly entered entries of the subfield.np55
MCR402Annual Data Collection6/12/24

loan_policies_used_in_laptop_charges

This query can be used for the annual data collection to see which loan policy types units used for laptop charges, how frequently.lm15, jl41
MCR403Access Services

create_circ_snapshot

Creates the initial snapshot of loans, capturing patron demographics for each circ tranasaction
MCR404Access Services6/27/24

update_circ_snapshot

This query creates the "insert into" portion of the circ_snapshot4 query. Updates the file created by MCR403.
MCR405Access Services11/8/24

items_with_content_by_MARC_field

This query finds items within a specified MARC field with a specified entry in the content field on the MARC table.slm5
MCR406Hathitrust12/3/24

hathitrust_903_mappings

This query creates a table of mapping for instances with 903 values and publishes it to the local_digpres schema. It is automated to run daily at 5am.slm5
MCR407Annual Data Collection1/8/25

Fine_Arts_ser_curr_rec_NAAB

This query estimates the number of physical serial titles currently received in the Mui Ho Fine Arts Library. It used two queries that search via purchase order and via holding records notes, combines instance HRIDs, and then dedupes.  Used in fall of 2024 for NAAB reporting.jl41, lm15
MCR408Collection Management1/24/25

annex_in_transit

This query finds items accessioned at the Annex with an "In transit" status, using an imported file of barcodes.
MCR409Access Services9/9/25

Active Patrons in Cornell Tech

This query finds all active patrons in Cornell Tech.
MCR410Collection Management10/7/25
Annex transfer candidates
This query finds candidates for transferring to the Annex by location, LC class, material type, holdings type, mode of issuance, size, circ history, pub date, year added to collection; 
excludes bound-withs and titles with holdings at the Annex; "Available" item status only

MCR411Collection Management10/8/25

Print serials with max payment date

This query uses an input list of PO numbers providedby the report user to find serials that we get in print. 
MCR412Collection Management10/8/25

Print serials and cost by FY based on an input list of PO numbers 

This query gets the payments for print serials (based on an input list of PO numbers) and shows finance group, fund, LC class, location.
MCR413Collection Management11/10/25

MARC field call number string match

This query retrieves MARC field data that matches items with a particular text string in the call number
MCR414Collection Management2/9/26
materials_circulated_in_folio
 This query finds all item records created after a given start date at a given library, and shows circ counts by year circulated (Folio loans only).jl41
MCR415AAccess Services2/26/26

missing_items_2_years_circ_desk_report

Long Missing Process query. List of items missing before two years ago to be flipped to Long missing.jl41
MCR415CAccess Services12/5/25

long_missing_report_for_selectors_missing_status_only

Long Missing Process query. Based on MCR210 (which looks at many items statuses) but is revised to look only at "Long Missing" and uses 
derived tables rather than source table extracts.
jl41
MCR416Access Services3/17/26

loan_id_item_id_hist_bib_search

This query takes a loan_id and item_id as inputs and returns the matching bibliographic and location data for that loaned item. 
This is useful when the item no longer appears in current source or derived item tables, but can still be traced through historical inventory tables.
slm5
MCR417
3/24/26

item_count_for_insurance

Physical Items Count for University Insurance Purposes

MCR418Annual Data Collection6/22/26

materials_counts_(1)

This query is the first of four queries used for annual materials count reporting. It creates the underlying data preparation table that serves as the foundation for subsequent materials count processing and reporting.
MCR419Annual Data Collection6/22/26materials_counts_(2)This query is the second of four queries used for annual materials count reporting. It applies format classification logic to the data preparation table created by MCR 418 and assigns one or more material formats to each record.
MCR420Annual Data Collection6/22/26

materials_counts_(3)

This query is the third of four queries used for annual materials count reporting. It creates a flattened version of the primary formats table generated by MCR 419.
MCR421Annual Data Collection6/22/26
materials_counts_(4)
This query is the final step in the materials count reporting process. It produces report-ready materials counts using the flattened formats table created by MCR 420.
MCR422Annual Data Collection6/29/26

withdrawn_transferred_with_finGroups

This query gets counts of withdrawn and transferred items by location, library, and college financial group (endowed or contract) for reporting to the Division of Financial Affairs.




  • No labels