MarvinJean
Programmer
I have a table with a column that may be null and may have data.
If the field is null I want to copy from the previous record. The first record will not be null.
Table:
Group Unit Data
123 1 Alpha
123 2 <null>
123 3 <null>
123 4 Beta
123 5 <null>
123 6 Gamma
123 7 <null>
123 8 <null>
123 9 Delta
I want to copy Alpha into unit 2 and 3. Copy Beta into unit 5. Copy Gamma into unit 7 and 8. Do not alter unit 1,4,6, or 9
Thanks
If the field is null I want to copy from the previous record. The first record will not be null.
Table:
Group Unit Data
123 1 Alpha
123 2 <null>
123 3 <null>
123 4 Beta
123 5 <null>
123 6 Gamma
123 7 <null>
123 8 <null>
123 9 Delta
I want to copy Alpha into unit 2 and 3. Copy Beta into unit 5. Copy Gamma into unit 7 and 8. Do not alter unit 1,4,6, or 9
Thanks