problem description
as follows, I created an attempt. I want group by to group the sum by RD.SKU and the RD.QTYRECEIVED field is sumsum, but I want to display the six fields of select instead of just showing RD.SKU and sumsum,. The simple point is, the sumsum field wants to implement the RD.QTYRECEIVED and
of the same RD.SKU.the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)
CREATE OR REPLACE VIEW aaa AS
SELECT
R.WHSEID,
RD.STORERKEY,
RD.SKU,
RD.QTYRECEIVED,
RD.LOTTABLE04+8/24 AS LOTTABLE04,
sum(RD.QTYRECEIVED) as sumsum
FROM. Omit the associated table
group by
R.WHSEID,
RD.STORERKEY,
RD.SKU,
RD.QTYRECEIVED,
RD.LOTTABLE04;