Untitled
unknown
mysql
2 years ago
488 B
7
Indexable
SELECT
i.serial,
p.commoncolor AS color,
i.product,
i.size,
i.bin,
i.location,
i.lastscandate
FROM
(SELECT
CONCAT('s', serialnumber) serial,
product,
size,
bin,
location,
lastscandate
FROM
inventoryitem
WHERE
location LIKE '10-%' AND qtyonhand = 1
GROUP BY location , bin
HAVING COUNT(serialnumber) = 1) i
JOIN
product p ON p.code = i.productEditor is loading...