I was wandering if it's possible to filter select results removing values that partially overlap
For example below, i have thousands of records, but i need the 'week date' value to be unqiue, and in case of duplicates the one with the highest value should remain.
emplo project_id Value week_Date week_ActualStart week_ActualEnd A0001 project001 100 2015-12-28 2015-12-28 2016-01-03 A0001 project001 60 2015-12-28 2016-01-01 2016-01-03 So only the first row should remain.
I could really use someone's advice
select * from (select Row_Number() Over(partition by week_Date Order by Value desc) ,.. ) a where rn = 1