P
pat
Hello:
I am running the following query:
INSERT INTO w_releaseln_edi ( RELEASENO, PRODNO,
PROD_DESC, BOXES, [CONTAINER], LOAD_NO, PO_NO, QTY )
SELECT DISTINCT First(w_releaseln.RELEASENO) AS
FirstOfRELEASENO, w_releaseln.PRODNO, First
(w_releaseln.PROD_DESC) AS FirstOfPROD_DESC, Sum
(w_releaseln.BOXES) AS SumOfBOXES, First
(w_releaseln.CONTAINER) AS FirstOfCONTAINER,
w_releaseln.LOAD_NO, w_releaseln.PO_NO, Sum
(w_releaseln.QTY) AS SumOfQTY
FROM w_releaseln
GROUP BY w_releaseln.PRODNO, w_releaseln.LOAD_NO,
w_releaseln.PO_NO
HAVING (((First(w_releaseln.RELEASENO))="004118"));
which is fine - my problem is that there is one other
field called seq which needs to be a consecutive number
starting with one by release number. Ex:
release prod Qty seq
004118 ABC 100 1
004118 DEF 300 2
004118 ghi 250 3
004119 ABC 50 1
004119 DEF 100 2
I need to add to my append the seq or do an update after
the append to get my seq.
Thanks in advance for your help.
Pat
I am running the following query:
INSERT INTO w_releaseln_edi ( RELEASENO, PRODNO,
PROD_DESC, BOXES, [CONTAINER], LOAD_NO, PO_NO, QTY )
SELECT DISTINCT First(w_releaseln.RELEASENO) AS
FirstOfRELEASENO, w_releaseln.PRODNO, First
(w_releaseln.PROD_DESC) AS FirstOfPROD_DESC, Sum
(w_releaseln.BOXES) AS SumOfBOXES, First
(w_releaseln.CONTAINER) AS FirstOfCONTAINER,
w_releaseln.LOAD_NO, w_releaseln.PO_NO, Sum
(w_releaseln.QTY) AS SumOfQTY
FROM w_releaseln
GROUP BY w_releaseln.PRODNO, w_releaseln.LOAD_NO,
w_releaseln.PO_NO
HAVING (((First(w_releaseln.RELEASENO))="004118"));
which is fine - my problem is that there is one other
field called seq which needs to be a consecutive number
starting with one by release number. Ex:
release prod Qty seq
004118 ABC 100 1
004118 DEF 300 2
004118 ghi 250 3
004119 ABC 50 1
004119 DEF 100 2
I need to add to my append the seq or do an update after
the append to get my seq.
Thanks in advance for your help.
Pat