home / current_collection

item_view (view)

5 rows where location_code = "1hj"

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: item_format, best_author, item_status_name, checkout_total, renewal_total, item_price, publish_year, creation_date (date), last_circ_act_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
10174378   3399029 2018-12-10 A000064081005 Book 1hj Main - 1st Floor - Adult Learning and Literacies - Juvenile Main Library fiction   Kowalski, William, 1970- author. Jumped in 1 - CHECK SHELVES 2019-08-15     2 7 94.5 2017
10174373   3399025 2018-12-10 A000064081138 Reference Book 1hj Main - 1st Floor - Adult Learning and Literacies - Juvenile Main Library 428.6 qg434 2009   Gianola, Ann. Life goes on : day-to-day stories and language activities. Introductory 1 o LIBRARY USE ONLY       0 0 12.25 2009
10174376   3399027 2018-12-10 A000064081120 Reference Book 1hj Main - 1st Floor - Adult Learning and Literacies - Juvenile Main Library 428.6 qg434 h 2009   Gianola, Ann. Life goes on. High beginning : day-to-day stories and language activities 1 o LIBRARY USE ONLY       0 0 12.25 2009
10174377   3399028 2018-12-10 A000064081153 Reference Book 1hj Main - 1st Floor - Adult Learning and Literacies - Juvenile Main Library 428.6 qg434 l 2009   Gianola, Ann. Life goes on. Low intermediate : day-to-day stories and language activities 1 o LIBRARY USE ONLY       0 0 12.25 2009
10174374   3399026 2018-12-10 A000064081146 Reference Book 1hj Main - 1st Floor - Adult Learning and Literacies - Juvenile Main Library 428.64 qg434 2009   Gianola, Ann. Life goes on. Low beginning : day-to-day stories and language activities 1 o LIBRARY USE ONLY       0 0 12.25 2009

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 473.363ms