Change Previous record
Posted: Mon Apr 18, 2005 11:10 am
Hello All,
How is it possible to make the previous record zero.
If current.col1 = prev.col1 and current.col2 = prev.col2 and min_date = max_date + 1 and code = 30 then make previous record 0.
Result :
Thanks
How is it possible to make the previous record zero.
Code: Select all
Col1 Col2 Min_Date Max_Date Code COunt
123 456 2004-01-01 2004-12-10 30 1
123 456 2004-12-11 2004-12-10 30 1
Result :
Code: Select all
Col1 Col2 Min_Date Max_Date Code COunt
123 456 2004-01-01 2004-12-10 30 0
123 456 2004-12-11 2004-12-10 30 1