Subject | Re: [firebird-support] Inserting with a select |
---|---|
Author | Tim Ledgerwood |
Post date | 2003-08-13T11:19:10Z |
>"INSERT INTO RECON (field1, field2, field3)Sorry - I meant
>
>SELECT fieldA, fieldB, SUM(FieldC)
>FROM Table2
>WHERE fieldA = 'xyz'
>GROUP BY fieldA, fieldB
>
>WHERE Table2.BATCHNO = RECON.BATCHNO"
>
>??? Anyone got any idea of how I can do this?
"UPDATE RECON
SET
field1 = (SELECT BATCHNO, SUM(fieldA) FROM Table2
GROUP BY BATCHNO)
WHERE
RECON.BATCHNO = Table2.BATCHNO"
[Non-text portions of this message have been removed]