BNA8/.resources/7f0fb51d352157985655037bb7ec735a64681decd4532d611dcea0297f0e8538

16 lines
584 B
Plaintext

SELECT s01_timestamp AS induct_timestamp,
s04_timestamp AS confirm_timestamp,
sorter, trackid, scanner,
bcr_imgid AS imgid, s01_barcode AS barcode, scanner_status,
pkg_length/10 AS pkg_length, /* In inches */
gap_leading/10 AS gap_leading, /* In inches */
gap_trailing/10 AS gap_trailing, /* In inches */
carriers AS trays,
assignments, divert_status,
destination_req AS requested_dest,
destination_act AS diverted_dest,
sort_code
FROM package_history
WHERE s04_timestamp BETWEEN :startDate AND :endDate
ORDER BY s04_timestamp DESC
{limit};