home / current_collection

item_view (view)

3 rows where location_code = "1papl"

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: creation_date (date), last_circ_act_date (date), checkout_date (date), due_date (date)

item_record_num volume_record_num bib_record_num creation_date barcode item_format location_code location_name branch_name item_callnumber vol_statement best_author best_title agency_code_num item_status_code item_status_name last_circ_act_date checkout_date due_date checkout_total renewal_total item_price publish_year
10196153   3412101 2018-12-28 A000064159645 Playaway 1papl Main - 1st Floor - Popular Library - Playaways Main Library pl-spoken fiction albom   Albom, Mitch, 1958- author, narrator. The next person you meet in heaven 1 - CHECK SHELVES 2020-12-02     6 12 41.24 2018
12735835   3466411 2025-02-25 A000065513220 Playaway 1papl Main - 1st Floor - Popular Library - Playaways Main Library pl-spoken fiction patterson   Patterson, James, 1947- author. Unsolved 1 - CHECK SHELVES       0 0 15.5 2019
11567323   3718826 2022-03-04 A000075224594 Playaway 1papl Main - 1st Floor - Popular Library - Playaways Main Library pl-spoken fiction young   Young, Erin, 1975- author. The fields 1 - CHECK SHELVES 2024-08-13 2024-08-13 2025-02-18 7 13 79.99 2022

Advanced export

JSON shape: default, array, newline-delimited

CSV options:

CREATE VIEW item_view AS select
  item.item_record_num,
  item.volume_record_num,
  item.bib_record_num,
  item.creation_date,
  item.barcode,
  item.item_format,
  item.location_code,
  location_name."name" as location_name,
  branch_name."name" as branch_name,
  item.item_callnumber,
  item.volume_record_statement as vol_statement,
  bib.best_author,
  bib.best_title,
  item.agency_code_num,
  item.item_status_code,
  item_status_property.item_status_name,
  coalesce(
    item.checkout_date,
    item.last_checkin_date,
    item.last_checkout_date
  ) as last_circ_act_date,
  item.checkout_date,
  item.due_date,
  item.checkout_total,
  item.renewal_total,
  item.price_cents / 100.0 as item_price,
  bib.publish_year
from
  item
  left outer join bib on bib.bib_record_num = item.bib_record_num
  left outer join location on location.code = item.location_code
  left outer join location_name on location_name.location_id = location.id
  left outer join branch on branch.code_num = location.branch_code_num
  left outer join branch_name on branch_name.branch_id = branch.id
  left outer join item_status_property on item_status_property.item_status_code = item.item_status_code;
Powered by Datasette · Queries took 604.562ms