Untitled

 avatar
unknown
mysql
a year ago
387 B
8
Indexable
SELECT 
    concat('s', serialnumber) serial,
    product,
    size,
    bin,
    location,
    previousbin,
    previouslocation,
    SUBSTRING_INDEX(SUBSTRING_INDEX(locationhistory, ']', 1),
            ',',
            - 1) user,
            lastscandate
FROM
    inventoryitem
WHERE
    location = 'pa returns'
        AND qtyonhand = 1
        AND date(lastscandate) <= '2024-01-01'
Editor is loading...
Leave a Comment