Untitled

mail@pastecode.io avatar
unknown
mysql
2 years ago
452 B
3
Indexable
Never
SELECT 
    CONCAT('s', serialnumber) AS Serial,
    Product,
    Size,
    Bin,
    Location,
    Previousbin AS PrevBin,
    PreviousLocation AS PrevLoc,
    Lastscandate,
    Username AS User
FROM
    shard.inventoryitemupdate 
WHERE
    username = 'Maria Guadalupe Guzman Sotelo'
        AND lastscandate >= '2023-03-31 06:00:00'
        AND lastscandate <= '2023-03-31 18:30:00'
        AND qtyonhand = 1
#GROUP BY Serial
ORDER BY lastscandate ASC