G
GD
I have a small table that has duplicate invoice entries that are supposed to
be there. What I need is to add a field that displays the invoice amount for
the 1st instance (i.e. earliest record) of the invoice # in the table, but
then lists 0.00 for all subsequent records using that invoice #:
Inv# InvAmt NewField
102214 7841.23 7841.23
102513 5619.6 5619.6
102513 5619.6 0.00
102739 8789.61 8789.61
102739 8789.61 0.00
102856 1300.49 1300.49
102856 1300.49 0.00
103027 2637.8 2637.8
103211 4226.75 4226.75
103366 4431.26 4431.26
103479 2139.87 2139.87
103603 3198.97 3198.97
103603 3198.97 0.00
Any query or SQL that might accomplish this?
THANKS!!!
be there. What I need is to add a field that displays the invoice amount for
the 1st instance (i.e. earliest record) of the invoice # in the table, but
then lists 0.00 for all subsequent records using that invoice #:
Inv# InvAmt NewField
102214 7841.23 7841.23
102513 5619.6 5619.6
102513 5619.6 0.00
102739 8789.61 8789.61
102739 8789.61 0.00
102856 1300.49 1300.49
102856 1300.49 0.00
103027 2637.8 2637.8
103211 4226.75 4226.75
103366 4431.26 4431.26
103479 2139.87 2139.87
103603 3198.97 3198.97
103603 3198.97 0.00
Any query or SQL that might accomplish this?
THANKS!!!