S
stevieb
I have a table as follows:
Col1 = Name
Col2 = Date 1
Col3 = Date 2
(sorted by Name, then by Date 1)
Col3 is currently empty.
What I would like to do is update Col3 with a Date that is equal to (Date 1
- 1) of the next row. That is only if the next row contains the same Name.
ie. Before
Joe - Nov 1 - null
Joe - Dec 1 - null
After
Joe - Nov 1 - Nov 30
Joe - Dec 1 - null
Is it possible? If it is, would I have to change my logic and reverse order
the dates?
Col1 = Name
Col2 = Date 1
Col3 = Date 2
(sorted by Name, then by Date 1)
Col3 is currently empty.
What I would like to do is update Col3 with a Date that is equal to (Date 1
- 1) of the next row. That is only if the next row contains the same Name.
ie. Before
Joe - Nov 1 - null
Joe - Dec 1 - null
After
Joe - Nov 1 - Nov 30
Joe - Dec 1 - null
Is it possible? If it is, would I have to change my logic and reverse order
the dates?