Hi Ulrich,
For a combination of col1,dt,col4 the record with col3 value "2" is the first (which is record# 1) for dt 9/27. For dt 10/13, record # 5 is the first.
In other words, these are the records that should be updated.
sel * from test
qualify row_number() over (partition by col1,dt,col4 order by col3)=1;
Please help.
↧