If there is both null and numeric value in the offset and duration columns, I want to replace that null value with that numeric value for that particular set Monday to Sunday.
laboraccountid | weekday | offset | duration
---------------+-----------+--------+---------
190685 | Monday | 200 | 500
190685 | Tuesday | 200 | 500
190685 | Wednesday | null | null
190685 | Thursday | null | null
190685 | Friday | 200 | 500
190685 | Sunday | 200 | 500
125686 | Monday | 1435 | 5687
125686 | Tuesday | 1435 | 5687
125686 | Wednesday | 1435 | 5687
125686 | Thursday | 1435 | 5687
125686 | Friday | 1435 | 5687
125686 | Saturday | 1435 | 5687
125686 | Sunday | 1435 | 5687
I tried using the case statement but I am unable to do it.
coalescefunction.