我有这个问题
SELECT
CASE WHEN QuantityPart =< Threshold
THEN (Threshold - QuantityPart) + Threshold
END as RecommendedReorderQuantity, *
FROM parts, stock
谁能帮忙?
SELECT *,
CASE WHEN QuantityPart =< Threshold
THEN (Threshold - QuantityPart) + Threshold
END as RecommendedReorderQuantity
FROM parts INNER JOIN stock
ON parts.PartID = stock.PartID