TheRambler
Programmer
My data looks like this:
[tt]
Client Jan Feb Mar Apr Jun Jul Aug
A 77 71 106 99 94 118 135
B 0 0 0 25 45 13 25
C 25 80 55 128 0 0 0[blue]
D 217 0 0 301 228 0 0
E 227 86 0 0 0 0 35
F 0 0 15 67 0 0 29[/blue][/tt]
Monthly values can be either zero or positive, I need to retrieve (or just identify with a deletion mark) those records in blue, where zeroes are between positive values. How can I do that?
Here is the sample data:
I am using VFP7, any ideas are welcome.
[tt]
Client Jan Feb Mar Apr Jun Jul Aug
A 77 71 106 99 94 118 135
B 0 0 0 25 45 13 25
C 25 80 55 128 0 0 0[blue]
D 217 0 0 301 228 0 0
E 227 86 0 0 0 0 35
F 0 0 15 67 0 0 29[/blue][/tt]
Monthly values can be either zero or positive, I need to retrieve (or just identify with a deletion mark) those records in blue, where zeroes are between positive values. How can I do that?
Here is the sample data:
Code:
CREATE CURSOR sample (client c(1), jan n(3), feb n(3), mar n(3), apr n(3), jun n(3), jul n(3), aug n(3))
INSERT INTO sample VALUES ("A",77,71,106,99,94,118,135)
INSERT INTO sample VALUES ("B",0,0,0,25,45,13,25)
INSERT INTO sample VALUES ("C",25,80,55,128,0,0,0)
INSERT INTO sample VALUES ("D",217,0,0,301,228,0,0)
INSERT INTO sample VALUES ("E",227,86,0,0,0,0,35)
INSERT INTO sample VALUES ("F",0,0,15,67,0,0,29)
I am using VFP7, any ideas are welcome.