G
Guest
I need to find all records within each Prod_ID that occur AFTER the balance
has reached zero. In the example below, Rec_ID's 4, 7, 8, 13 and 14 would be
records I'm trying to retrieve.
Any ideas?
Rec_ID Prod_ID WC_ID Balance
1 950698 137X (192.29)
2 950698 1492 (300.22)
3 950698 1572 0.00
4 950698 1687 (845.49)
5 955480 371224 2,667.24
6 955480 371569 0.00
7 955480 371570 933.30
8 955480 371571 (693.54)
9 969233 1169 (24,699.16)
10 969233 137X (24,557.34)
11 969233 1492 (24,638.77)
12 969233 1572 0.00
13 969233 1599 (23,055.40)
14 969233 2241 (29,456.58)
has reached zero. In the example below, Rec_ID's 4, 7, 8, 13 and 14 would be
records I'm trying to retrieve.
Any ideas?
Rec_ID Prod_ID WC_ID Balance
1 950698 137X (192.29)
2 950698 1492 (300.22)
3 950698 1572 0.00
4 950698 1687 (845.49)
5 955480 371224 2,667.24
6 955480 371569 0.00
7 955480 371570 933.30
8 955480 371571 (693.54)
9 969233 1169 (24,699.16)
10 969233 137X (24,557.34)
11 969233 1492 (24,638.77)
12 969233 1572 0.00
13 969233 1599 (23,055.40)
14 969233 2241 (29,456.58)