Skip to content

Instantly share code, notes, and snippets.

@jeff

jeff/checkins_query.sql Secret

Created Jul 25, 2018
Embed
What would you like to do?
SELECT id, xact_start, checkin_time, checkin_scan_time, checkin_workstation, checkin_staff
FROM action.circulation AS circ
WHERE checkin_time IS NOT NULL
AND NOT EXISTS (SELECT 1 FROM action.circulation WHERE parent_circ = circ.id) -- no "child" circs
ORDER BY circ.checkin_time DESC
LIMIT 100;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment