DB2 - Is there a simple way to get “previous valid value”?
问题 I'm not sure if it is appropriate to call the problem as "previous valid value". The thing is like below: I have a table "A": create table A ( name varchar(16), performanceDate date, value int ); Both name and PerformanceDate are primary key. There is a process that will insert data for each user every day. So, the data will look something like below: select * from A; |------+-----------------+-------| | name | performanceDate | value | |------+-----------------+-------| | Joe | 2012-05-18 |