我正在尝试在报告中显示每只股票的总数及其描述。我有 2 个查询,但不知道如何组合它们。第一次查询
SELECT
stock_partno, SUM(stock_qty) AS TotalStock
FROM
stock
GROUP BY
stock_partno;
第二次查询
SELECT DISTINCT
Stock.stock_PartNo, parts.parts_Desc
FROM
parts
INNER JOIN
stock
ON
parts.Parts_partno = Stock.stock_PartNo;
我如何结合这两个查询,以便他们可以显示每个零件的总库存及其描述的报告?