Table A
Col1 Col2 Col3 Col4 Col5 1 AA 12/12/2018 1 null 2 AA1 12/5/2017 2 null 3 AA 15/7/2019 null 5
I need result to be like so:
Table A
Col1 Col2 Col3 Col4 Col5 1 AA 12/12/2018 1 5 2 AA1 12/5/2017 2 null
I need to combine results from rows for Col4 and Col5 where col2 is duplicated, and take the smallest date in Col3.
Not getting an idea for this one.