TudorSmith
Programmer
Hi All. I'm pretty new to cursors...in fact I'm a newbie with them. I think I need to run a cursor for the following exercise. If now please advise, otherwise, could some clever person build one for me?
I have a table with rows of data, where one column is identified as "AddOmitFlag". If the value has 0, then it needs to be omitted.
What I have:
Description AddOmitFlag
MP2 0
MP2 0
MP2 -1
Here you see three entries for an MP2. The omit flag indicates that one of the entries has to be remove. The final outcome will not show the omitted record, and one of the other MP2's will be stripped out.
What I need:
Description AddOmitFlag
MP2 0
It's a cancelling out exercise I figure. Would this be handled in a cursor inasmuch as I'd pass each row into the cursor but do some manipulation to only include items where a subsequent item does not have an entry?
Thanks in advance
birklea
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))
I have a table with rows of data, where one column is identified as "AddOmitFlag". If the value has 0, then it needs to be omitted.
What I have:
Description AddOmitFlag
MP2 0
MP2 0
MP2 -1
Here you see three entries for an MP2. The omit flag indicates that one of the entries has to be remove. The final outcome will not show the omitted record, and one of the other MP2's will be stripped out.
What I need:
Description AddOmitFlag
MP2 0
It's a cancelling out exercise I figure. Would this be handled in a cursor inasmuch as I'd pass each row into the cursor but do some manipulation to only include items where a subsequent item does not have an entry?
Thanks in advance
birklea
birklea ~©¿©~ <><
Dim objJedi as Jedi.Knight
Set objJedi[skyWalker].Aniken = FatherOf(useThe.Force(objJedi[skyWalker].luke))